Since one of my pet hates is people who add features without
adding them to the documentation, I thought I'd better supply
a patch to the psql man page which documents the .psqlrc file :-)
(I forgot yesterday....)
Andrew
*** psql.1.old Sat Jun 21 14:54:46 1997
- --- psql.1 Sat Jun 21 15:02:09 1997
***************
*** 97,102 ****
- --- 97,113 ----
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
- ----------------------------------------------------------------------------
Dr. Andrew C.R. Martin University College London
EMAIL: (Work) martin@biochem.ucl.ac.uk (Home) andrew@stagleys.demon.co.uk
URL: http://www.biochem.ucl.ac.uk/~martin
Tel: (Work) +44(0)171 419 3890 (Home) +44(0)1372 275775
------------------------------