From 6666052a9579752c283c1acad9273361bec98f2e Mon Sep 17 00:00:00 2001 From: Chris Coley <chris@codingallnight.com> Date: Wed, 6 Dec 2017 12:01:55 -0800 Subject: [PATCH] Updating the psqlrc file --- psqlrc | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/psqlrc b/psqlrc index 69515fc..f9fdb9b 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' -- GitLab