]> granicus.if.org Git - postgresql/commit
pg_dump: Use current_database() instead of PQdb()
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 10 Apr 2018 16:32:05 +0000 (12:32 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 4 May 2018 13:35:37 +0000 (09:35 -0400)
commit1cd2445c9985719ea1bb9f644373481c8702af64
tree1f9d3aaf09951fcae03c4e3b5d0d0ef316fe3325
parent2a9e04f0a8ada12d4af4f095e4dbe164e2983bce
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.
src/bin/pg_dump/pg_dump.c