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.
Showing
Please register or sign in to comment