Get rid of client-code dependencies on the exact text of the no-password

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8331c11f3f6d9f4b9a194b928f7d8380e8a16e5b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-07-08T19:07:38Z
Releases: 8.3.0
Get rid of client-code dependencies on the exact text of the no-password
error message, by using PQconnectionUsedPassword() instead.  Someday
we might be able to localize that error message, but not until this
coding technique has disappeared everywhere.

Files

PathChange+/−
src/bin/pg_ctl/pg_ctl.c modified +8 −5
src/bin/pg_dump/pg_backup_db.c modified +23 −33
src/bin/pg_dump/pg_dumpall.c modified +7 −9
src/bin/psql/command.c modified +6 −6
src/bin/psql/startup.c modified +7 −8
src/bin/scripts/common.c modified +7 −8