Get rid of client-code dependencies on the exact text of the no-password
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |