blob: 8d3e0adf07931ddad93709368e99b239971dd46a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
-- Official docs: http://www.postgresql.org/docs/current/static/app-psql.html
-- Unofficial docs: http://robots.thoughtbot.com/improving-the-command-line-postgres-experience
\set QUIET 1
\pset null '[NULL]'
\pset border 2
\set PROMPT1 '%[%033[1m%]%M %n@%/%R%[%033[0m%]%# '
\set PROMPT2 '[more] %R > '
-- Show how long each query takes to execute
\timing
-- Use best available output format
\x auto
-- Maintain a separate history for each database.
\set HISTFILE ~/.psql_history- :DBNAME
\set HISTCONTROL ignoreboth
\unset QUIET
-- vim: ft=sql :
|