postgresql/src/bin
Tom Lane 1aa41e3eae In pg_dump, remember connection passwords no matter how we got them.
When pg_dump prompts the user for a password, it remembers the password
for possible re-use by parallel worker processes.  However, libpq might
have extracted the password from a connection string originally passed
as "dbname".  Since we don't record the original form of dbname but
break it down to host/port/etc, the password gets lost.  Fix that by
retrieving the actual password from the PGconn.

(It strikes me that this whole approach is rather broken, as it will also
lose other information such as options that might have been present in
the connection string.  But we'll leave that problem for another day.)

In passing, get rid of rather silly use of malloc() for small fixed-size
arrays.

Back-patch to 9.3 where parallel pg_dump was introduced.

Report and fix by Zeus Kronion, adjusted a bit by Michael Paquier and me
2015-12-23 14:25:53 -05:00
..
initdb Use just one standalone-backend session for initdb's post-bootstrap steps. 2015-12-17 19:38:21 -05:00
pg_archivecleanup Make WAL-related utilities handle .partial WAL files properly. 2015-07-03 11:53:58 +09:00
pg_basebackup Cleanup some problems in new Perl test code 2015-12-07 19:39:57 -03:00
pg_config Translation updates 2015-06-28 23:56:55 -04:00
pg_controldata Cleanup some problems in new Perl test code 2015-12-07 19:39:57 -03:00
pg_ctl Refactor Perl test code 2015-12-02 18:46:16 -03:00
pg_dump In pg_dump, remember connection passwords no matter how we got them. 2015-12-23 14:25:53 -05:00
pg_resetxlog Make pg_controldata report newest XID with valid commit timestamp 2015-09-24 23:31:17 +09:00
pg_rewind Remove unreferenced function declarations. 2015-12-17 20:21:42 -05:00
pg_test_fsync Move pg_test_fsync from contrib/ to src/bin/ 2015-04-19 22:20:49 -04:00
pg_test_timing Move pg_test_timing from contrib/ to src/bin/ 2015-04-20 21:30:12 -04:00
pg_upgrade pg_upgrade: fix CopyFile() on Windows to fail on file existence 2015-11-24 17:18:28 -05:00
pg_xlogdump Improve includes introduced in the replication origins patch. 2015-08-06 12:41:46 +02:00
pgbench pgbench: Change terminology from "threshold" to "parameter". 2015-12-18 13:24:51 -05:00
pgevent Update copyright for 2015 2015-01-06 11:43:47 -05:00
psql Fix calculation of space needed for parsed words in tab completion. 2015-12-21 15:08:56 -05:00
scripts Fix behavior of printTable() and friends with externally-invoked pager. 2015-12-02 18:20:41 -05:00
Makefile Move pg_xlogdump from contrib/ to src/bin/ 2015-04-21 19:03:49 -04:00