pgsql: pg_dump: Use current_database() instead of PQdb()

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_dump: Use current_database() instead of PQdb()
Date: 2018-05-04 13:36:39
Message-ID: E1fEat5-0002Nd-Uf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-05-04 13:46:47 pgsql: Fix precedence problem in new Perl code.
Previous Message Teodor Sigaev 2018-05-04 09:38:45 pgsql: Don't truncate away non-key attributes for leftmost downlinks.