diff options
| author | Bruce Momjian | 2002-08-15 02:56:19 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2002-08-15 02:56:19 +0000 |
| commit | 7f4981f4af1700456f98ac3f2b2d84959919ec81 (patch) | |
| tree | d954743ddfe828c7626430ff79d956d819748c97 /src/interfaces/perl5 | |
| parent | 46aaa5dda3a876ad958d4ea8fe3e8836d2043750 (diff) | |
I'm giving a try at some TODO items. Currently it's the turn of the
PGPASSWORDFILE environment variable. I have modified libpq to make use
of this variable. I present the first cut here.
Currently the format for the file should be
host:port:database:user:password
Alvaro Herrera
Diffstat (limited to 'src/interfaces/perl5')
| -rw-r--r-- | src/interfaces/perl5/Pg.pm | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/interfaces/perl5/Pg.pm b/src/interfaces/perl5/Pg.pm index 920612ebb4e..14d010dba87 100644 --- a/src/interfaces/perl5/Pg.pm +++ b/src/interfaces/perl5/Pg.pm @@ -1,6 +1,6 @@ #------------------------------------------------------- # -# $Id: Pg.pm,v 1.10 2001/09/10 04:19:19 momjian Exp $ +# $Id: Pg.pm,v 1.11 2002/08/15 02:56:19 momjian Exp $ # # Copyright (c) 1997, 1998 Edmund Mergl # @@ -260,15 +260,16 @@ When opening a connection a given database name is always converted to lower-case, unless it is surrounded by double quotes. All unspecified parameters are replaced by environment variables or by hard coded defaults: - parameter environment variable hard coded default - -------------------------------------------------- - host PGHOST localhost - port PGPORT 5432 - options PGOPTIONS "" - tty PGTTY "" - dbname PGDATABASE current userid - user PGUSER current userid - password PGPASSWORD "" + parameter environment variable hard coded default + ------------------------------------------------------ + host PGHOST localhost + port PGPORT 5432 + options PGOPTIONS "" + tty PGTTY "" + dbname PGDATABASE current userid + user PGUSER current userid + password PGPASSWORD "" + passwordfile PGPASSWORDFILE "" Using appropriate methods you can access almost all fields of the returned PGconn structure. |
