Skip to content

Instantly share code, notes, and snippets.

@nimolix
Created August 3, 2014 06:47
Show Gist options
  • Save nimolix/12f0a2d2b1edd6a6afd0 to your computer and use it in GitHub Desktop.
Save nimolix/12f0a2d2b1edd6a6afd0 to your computer and use it in GitHub Desktop.
My .psqlrc
-- \set PROMPT1 '%n@%m %/%R%x%# '
-- \set PROMPT2 '%n@%m %/%R%x%# '
\set PROMPT1 '%M:%[%033[1;31m%]%>%[%033[0m%] %n@%[%033[1;32m%]%/%[%033[0m%]%R%#%x '
\set PROMPT2 '%M %n@%[%033[1;32m%]%/%[%033[0m%]%R %# '
-- \set AUTOCOMMIT off
\pset null '[null]'
\set COMP_KEYWORD_CASE upper
\set ON_ERROR_ROLLBACK interactive
-- \set VERBOSITY verbose
\set version 'SELECT version();'
\set extensions 'select * from pg_available_extensions;'
\encoding UNICODE
\timing
\x auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment