From 453d74b99c9ba6e5e75d214b0d7bec13553ded89 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 10 Jun 2005 03:02:30 +0000 Subject: Add the "PGPASSFILE" environment variable to specify to the password file. Andrew Dunstan --- doc/src/sgml/libpq.sgml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'doc/src') 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 @@ @@ -3712,6 +3712,17 @@ allow non-root users to see process environment variables via + + PGPASSFILE + +PGPASSFILE +specifies the name of the password file to use for lookups. +If not set, it defaults to ~/.pgpass +(see ). + + + + PGSERVICE @@ -3902,12 +3913,13 @@ internationalization. -The file .pgpass 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 -%APPDATA%\postgresql\pgpass.conf (where %APPDATA% -refers to the Application Data subdirectory in the user's profile). +The file .pgpass in a user's home directory or the +file referenced by PGPASSFILE 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 +%APPDATA%\postgresql\pgpass.conf (where +%APPDATA% refers to the Application Data subdirectory in +the user's profile). -- cgit v1.2.3