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)
commit4f9bf7fc5a1fcc3b1beac9b2e1d2e693ae7bd796
treedbc4b337965401ee7fd8c9598f98e4e7e5ba2f8f
parentcb1ab30fdc3b44a7d34ccf9cdaa82d46dd6427c1
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