11.\" This is -*-nroff-*-
22.\" XXX standard disclaimer belongs here....
3- .\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.15 1997/11/14 21:38:16 momjian Exp $
3+ .\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.16 1997/11/15 02:47:23 thomas Exp $
44.TH PSQL UNIX 1/20/96 PostgreSQL PostgreSQL
55.SH NAME
66psql\(em run the interactive query front-end
@@ -372,15 +372,23 @@ Escape to shell or execute
372372.IR command.
373373.IP \e ?
374374Get help information about the\e commands.
375+
375376.SH "ENVIRONMENT VARIABLES"
377+ There are some environment variables which can be used in liu of
378+ command line arguments; these are detailed below.
379+ Additionally, the Postgres frontend library used by the psql application
380+ looks for other optional environment variables to configure, for example,
381+ the style of date/time representation and the local time zone. Refer
382+ to libpq(3) for more details.
383+ .PP
376384You may set any of the following environment variables to avoid
377385specifying command-line options:
378386.nf
379- hostname: PGHOST
380- port: PGPORT
381- tty: PGTTY
382- options: PGOPTION
383- realm: PGREALM
387+ hostname: PGHOST
388+ port: PGPORT
389+ tty: PGTTY
390+ options: PGOPTION
391+ realm: PGREALM
384392.fi
385393.PP
386394If
@@ -394,14 +402,12 @@ only applies if
394402.IR Kerberos
395403authentication is in use. If this environment variable is set, Postgres
396404will attempt authentication with servers for this realm and use
397- separate ticket files to avoid conflicts with local ticket files. See
405+ separate ticket files to avoid conflicts with local ticket files.
406+ See
398407.IR pgintro (1)
399408for additional information on
400409.IR Kerberos .
401- .PP
402- See
403- .IR pgintro (libpq)
404- for additional details.
410+
405411.SH "RETURN VALUE"
406412.IR psql
407413returns 0 to the shell on successful completion of all queries,