Fix up the PQconnectionUsedPassword mess: create a separate
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 Dec 2007 19:01:40 +0000 (19:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 Dec 2007 19:01:40 +0000 (19:01 +0000)
commitbf482a9c8eee9eff6c9fff3607de48285a0b3467
tree40e7c8f810b15aacfdce9e0a45882f8c7f7ec5a2
parentdf209374df2ba849366548e86d0aea0713ad3db5
Fix up the PQconnectionUsedPassword mess: create a separate
PQconnectionNeedsPassword function that tells the right thing for whether to
prompt for a password, and improve PQconnectionUsedPassword so that it checks
whether the password used by the connection was actually supplied as a
connection argument, instead of coming from environment or a password file.
Per bug report from Mark Cave-Ayland and subsequent discussion.
13 files changed:
doc/src/sgml/libpq.sgml
doc/src/sgml/release.sgml
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_dumpall.c
src/bin/psql/command.c
src/bin/psql/startup.c
src/bin/scripts/common.c
src/interfaces/libpq/exports.txt
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h