-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.psqlrc
More file actions
50 lines (29 loc) · 1.06 KB
/
.psqlrc
File metadata and controls
50 lines (29 loc) · 1.06 KB
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
46
47
48
49
50
\set QUIET 1
-- Customize the prompts
\set PROMPT1 '%[%033[1;33m%]%/%[%033[1;32m%]%R%#%x %[%033[0m%]'
\set PROMPT2 '[more] %R > '
-- By default, NULL displays as an empty space. Is it actually an empty
-- string, or is it null? This makes that distinction visible.
\pset null '[NULL]'
-- Autocomplete keywords (like SELECT) in upper-case, even if you started
-- typing them in lower case.
\set COMP_KEYWORD_CASE upper
-- Display query times for all queries
\timing
-- Save previous SQL commands
\set HISTSIZE 2000
-- If a command is run more than once in a row,
-- only store it once in the history.
\set HISTCONTROL ignoredups
-- Use a separate history file per-database.
\set HISTFILE ~/.psql_history- :DBNAME
-- Use table format (with headers across the top) by default, but switch to
-- expanded table format when there's a lot of data, which makes it much
-- easier to read.
\x auto
-- Increase verbosity of error reports
\set VERBOSITY verbose
\set QUIET 0
-- Aliases
\set version 'SELECT version();'
\set extensions 'select * from pg_available_extensions;'