pgsql: pg_dump: Use current_database() instead of PQdb() - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: pg_dump: Use current_database() instead of PQdb()
Date
Msg-id E1fEat5-0002Nd-Uf@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pg_dump: Use current_database() instead of PQdb()

For querying pg_database about information about the database being
dumped, look up by using current_database() instead of the value
obtained from PQdb().  When using a connection proxy, the value from
PQdb() might not be the real name of the database.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1cd2445c9985719ea1bb9f644373481c8702af64

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 52 ++++++++++++++++++++---------------------------
1 file changed, 22 insertions(+), 30 deletions(-)


pgsql-committers by date:

Previous
From: Teodor Sigaev
Date:
Subject: pgsql: Don't truncate away non-key attributes for leftmost downlinks.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix precedence problem in new Perl code.