Skip to content

Commit b611fef

Browse files
committed
Patch to document the /etc/psqlrc / ~/.psqlrc config files
From: <Dr. Andrew C.R. Martin> martin@biochem.ucl.ac.uk
1 parent 753f720 commit b611fef

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/man/psql.1

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.21 1998/01/11 22:17:54 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.22 1998/01/25 06:12:52 scrappy Exp $
44
.TH PSQL UNIX 1/20/96 PostgreSQL PostgreSQL
55
.SH NAME
66
psql - run the interactive query front-end
@@ -104,6 +104,17 @@ defaults to the value of the
104104
environment variable or, if that's not set, to the Unix account name of the
105105
current user.
106106
.PP
107+
When
108+
.IR "psql"
109+
starts, it reads SQL commands from
110+
.IR "/etc/psqlrc"
111+
and then from
112+
.IR "$(HOME)/.psqlrc"
113+
This allows SQL commands like
114+
.IR SET
115+
which can be used to set the date style to be run at the start of
116+
evry session.
117+
.PP
107118
.IR "psql"
108119
understands the following command-line options:
109120
.TP

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy