summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier1998-01-25 06:12:52 +0000
committerMarc G. Fournier1998-01-25 06:12:52 +0000
commitb611fefa0fadf690383970356573fe5f94be72c3 (patch)
treea12f15f2646ea00cb0ca559fb4cd1cae623abd56
parent753f720cb8b9c8e66ab486b1b6a7379e472b9a7a (diff)
Patch to document the /etc/psqlrc / ~/.psqlrc config files
From: <Dr. Andrew C.R. Martin> [email protected]
-rw-r--r--src/man/psql.113
1 files changed, 12 insertions, 1 deletions
diff --git a/src/man/psql.1 b/src/man/psql.1
index 508289121e..c867ab5777 100644
--- a/src/man/psql.1
+++ b/src/man/psql.1
@@ -1,6 +1,6 @@
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.21 1998/01/11 22:17:54 momjian Exp $
+.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.22 1998/01/25 06:12:52 scrappy Exp $
.TH PSQL UNIX 1/20/96 PostgreSQL PostgreSQL
.SH NAME
psql - run the interactive query front-end
@@ -104,6 +104,17 @@ defaults to the value of the
environment variable or, if that's not set, to the Unix account name of the
current user.
.PP
+When
+.IR "psql"
+starts, it reads SQL commands from
+.IR "/etc/psqlrc"
+and then from
+.IR "$(HOME)/.psqlrc"
+This allows SQL commands like
+.IR SET
+which can be used to set the date style to be run at the start of
+evry session.
+.PP
.IR "psql"
understands the following command-line options:
.TP