-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.psqlrc
45 lines (37 loc) · 1.01 KB
/
.psqlrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
\set AUTOCOMMIT OFF
\set QUIET
\encoding unicode
-- Separate history file per-database
\set HISTFILE ~/.psql_history :DBNAME
\set HISTCONTROL ignorespace
-- Ignore repeated commands in history
\set HISTCONTROL ignoredups
\set HISTSIZE 10000
\timing
\set PROMPT1 '(%n@%M:%>) [%/] > '
\set PROMPT2 ''
-- Autocomplete sel[tab] to SELECT
\set COMP_KEYWORD_CASE upper
\set ON_ERROR_STOP on
\set ON_ERROR_ROLLBACK on
\set VERBOSITY verbose
-- expanded: extended display
-- Values: auto, on, off
\x auto
\set VERBOSITY verbose
-- format: output format.
-- Values: unaligned, aligned, wrapped, html, asciidoc, latex, latex-longtable,
-- troff-ms
\pset format aligned
\set poff '\\pset pager off'
\set less '\\pset pager on\n\\setenv PAGER less'
\set pspg '\\pset pager on\n\\setenv PAGER \'pspg -bX\''
\pset pager off
\pset null '<null>'
\pset format wrapped
\pset linestyle unicode
\pset border 1
-- linestyle: border drawing style.
-- Values: ascii, old-ascii, unicode
\pset linestyle ascii
SET TIMEZONE = 'America/Sao_Paulo';