diff --git a/psqlrc b/psqlrc index 69515fc6d81f0e3131c87d77a05c9865ff9130ac..f9fdb9b4f659a6b93056a1ecfcca756753f21317 100644 --- a/psqlrc +++ b/psqlrc @@ -4,13 +4,19 @@ -- Autocomplete keywords to uppercase \set COMP_KEYWORD_CASE upper +-- Verbose error reports +\set VERBOSITY verbose + -- Create a separate history file for each database -\set HISTFILE ~/.psql_history-:DBNAME +\set HISTFILE ~/.psql_history- :DBNAME + +-- Ignore duplicate history entries, and lines starting with a space +\set HISTCONTROL ignoreboth --- Ignore duplicate history entries -\set HISTCONTROL ignoredups +-- Keep 2000 commands in history +\set HISTSIZE 2000 --- Force NULL to display as a character instead of empty +-- Force NULL to display as an ASCII 207 character instead of an empty space \pset null ¤ -- Show how long each query takes to execute @@ -19,9 +25,14 @@ -- Use horizontal/vertical column output based on content \x auto -\unset QUIET - -- Useful aliases \set version 'SELECT version();' \set extensions 'SELECT * FROM pg_available_extensions;' \set whoami 'SELECT CURRENT_USER;' + +\unset QUIET + +\echo '\nPSQL resource file loaded.' +\echo 'NULL is displayed as "¤".' +\echo 'Type :version to see the PostgreSQL version.' +\echo 'Type :extensions to see the available extensions.\n'