Skip to content

Commit 644b37c

Browse files
author
Thomas G. Lockhart
committed
Add mention of new environment variables for session initialization.
Cross-reference libpq(3).
1 parent 2f4ccfe commit 644b37c

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

src/man/psql.1

Lines changed: 17 additions & 11 deletions
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.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
66
psql \(em run the interactive query front-end
@@ -372,15 +372,23 @@ Escape to shell or execute
372372
.IR command.
373373
.IP \e?
374374
Get 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
376384
You may set any of the following environment variables to avoid
377385
specifying 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
386394
If
@@ -394,14 +402,12 @@ only applies if
394402
.IR Kerberos
395403
authentication is in use. If this environment variable is set, Postgres
396404
will 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)
399408
for 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
407413
returns 0 to the shell on successful completion of all queries,

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