From 5fc10c3d17f12fbdc9b676b2c2e5efb6ef588334 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 5 Sep 2002 22:05:50 +0000 Subject: Remove PGPASSWORDFILE and default to always trying $HOME/.pgpass. Cleanup up memory allocation for $HOME in related psql places. Update mention of $HOME/.pgpass in the docs; add mention in pg_dumpall. --- doc/src/sgml/libpq.sgml | 40 ++++++++++++++++++++++------------------ doc/src/sgml/ref/clusterdb.sgml | 10 +++++----- doc/src/sgml/ref/pg_dumpall.sgml | 10 +++++++++- doc/src/sgml/ref/vacuumdb.sgml | 9 +++++---- 4 files changed, 41 insertions(+), 28 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index d1179fa92fc..90e1c48125d 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -2052,23 +2052,6 @@ reasons; consider migrating to PGPASSWORDFILE. - - PGPASSWORDFILE - -PGPASSWORDFILE -sets the password file used if the backend demands password authentication. -This file should have the format - -hostname:port:database:username:password - -Any of these may be a literal name, or a * that matches -anything. The first match will be the one used, so put more specific entries first. -Entries with : or \ should be escaped -with \. - - - - PGREALM sets the Kerberos realm to use with PostgreSQL, if it is different from the local realm. If PGREALM is set, PostgreSQL @@ -2141,6 +2124,27 @@ for information on correct values for these environment variables. + + +Files + + + files + + +$HOME/.pgpass is a file that can contain passwords +to be used if the connection requires a password. This file should have the +format: + +hostname:port:database:username:password + +Any of these may be a literal name, or *, which matches +anything. The first match will be used so put more specific entries first. +Entries with : or \ should be escaped +with \. + + + Threading Behavior diff --git a/doc/src/sgml/ref/clusterdb.sgml b/doc/src/sgml/ref/clusterdb.sgml index 114fbaafa38..1eae14e9672 100644 --- a/doc/src/sgml/ref/clusterdb.sgml +++ b/doc/src/sgml/ref/clusterdb.sgml @@ -1,5 +1,5 @@ @@ -54,10 +54,10 @@ PostgreSQL documentation - clusterdb will need to connect several times to the - PostgreSQL server. If you are using password - authentication, it will ask for the password each time. It will probably be - very convenient to have a PGPASSWORDFILE in that case. + clusterdb might need to connect several + times to the PostgreSQL server, asking for + a password each time. It is convenient to have a + $HOME/.pgpass file in such cases. diff --git a/doc/src/sgml/ref/pg_dumpall.sgml b/doc/src/sgml/ref/pg_dumpall.sgml index 869f480a341..e6f156dcc6e 100644 --- a/doc/src/sgml/ref/pg_dumpall.sgml +++ b/doc/src/sgml/ref/pg_dumpall.sgml @@ -1,5 +1,5 @@ @@ -61,6 +61,14 @@ PostgreSQL documentation The SQL script will be written to the standard output. Shell operators should be used to redirect it into a file. + + + pg_dumpall might need to connect several + times to the PostgreSQL server, asking for + a password each time. It is convenient to have a + $HOME/.pgpass file in such cases. + + diff --git a/doc/src/sgml/ref/vacuumdb.sgml b/doc/src/sgml/ref/vacuumdb.sgml index 286e3de4c75..40e6e074319 100644 --- a/doc/src/sgml/ref/vacuumdb.sgml +++ b/doc/src/sgml/ref/vacuumdb.sgml @@ -1,5 +1,5 @@ @@ -62,9 +62,10 @@ PostgreSQL documentation - vacuumdb will need to connect several times to the - PostgreSQL server, asking for the password each - time. It will probably be very convenient to have a PGPASSWORDFILE in that case. + vacuumdb might need to connect several + times to the PostgreSQL server, asking for + a password each time. It is convenient to have a + $HOME/.pgpass file in such cases. -- cgit v1.2.3