Created
January 14, 2014 23:32
-
-
Save csquared/8428062 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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