diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-06-10 03:02:30 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-06-10 03:02:30 +0000 |
commit | 453d74b99c9ba6e5e75d214b0d7bec13553ded89 (patch) | |
tree | fd1cb84cf83123f083156542cfe770ce5c276d70 /doc/src | |
parent | 3b167a4099c9ea2e86cd536afb75becd1f3f3875 (diff) |
Add the "PGPASSFILE" environment variable to specify to the password
file.
Andrew Dunstan
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index adee93a8853..be92de3e701 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.183 2005/06/09 19:08:28 tgl Exp $ +$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.184 2005/06/10 03:02:01 momjian Exp $ --> <chapter id="libpq"> @@ -3713,6 +3713,17 @@ allow non-root users to see process environment variables via <listitem> <para> <indexterm> + <primary><envar>PGPASSFILE</envar></primary> +</indexterm> +<envar>PGPASSFILE</envar> +specifies the name of the password file to use for lookups. +If not set, it defaults to <filename>~/.pgpass</> +(see <xref linkend="libpq-pgpass">). +</para> +</listitem> +<listitem> +<para> +<indexterm> <primary><envar>PGSERVICE</envar></primary> </indexterm> <envar>PGSERVICE</envar> @@ -3902,12 +3913,13 @@ internationalization. </indexterm> <para> -The file <filename>.pgpass</filename> in a user's home directory is a file -that can contain passwords to be used if the connection requires a -password (and no password has been specified otherwise). -On Microsoft Windows the file is named -<filename>%APPDATA%\postgresql\pgpass.conf</> (where <filename>%APPDATA%</> -refers to the Application Data subdirectory in the user's profile). +The file <filename>.pgpass</filename> in a user's home directory or the +file referenced by <envar>PGPASSFILE</envar> can contain passwords to +be used if the connection requires a password (and no password has been +specified otherwise). On Microsoft Windows the file is named +<filename>%APPDATA%\postgresql\pgpass.conf</> (where +<filename>%APPDATA%</> refers to the Application Data subdirectory in +the user's profile). </para> <para> |