Skip to content

Instantly share code, notes, and snippets.

@csquared
Created January 14, 2014 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csquared/8428062 to your computer and use it in GitHub Desktop.
Save csquared/8428062 to your computer and use it in GitHub Desktop.
-- don't rollback the entire fucking transaction
-- if you typo a sql command, but only in interactive mode
\set ON_ERROR_ROLLBACK interactive
-- a prompt wtih transaction information
\set PROMPT1 '%[%033[33;1m%]%x%[%033[0m%]%[%033[1m%]%/%[%033[0m%]%R%# '
-- automatically switch between extended and normal
-- depending on how wide the output is
\x auto
-- always show how long a query takes
\timing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment