We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ec56f commit 5c97528Copy full SHA for 5c97528
src/bin/pg_dump/pg_backup_db.c
@@ -301,7 +301,8 @@ ConnectDatabase(Archive *AHX,
301
/* check to see that the backend connection was successfully made */
302
if (PQstatus(AH->connection) == CONNECTION_BAD)
303
exit_horribly(modulename, "connection to database \"%s\" failed: %s",
304
- PQdb(AH->connection), PQerrorMessage(AH->connection));
+ PQdb(AH->connection) ? PQdb(AH->connection) : "",
305
+ PQerrorMessage(AH->connection));
306
307
/* check for version mismatch */
308
_check_database_version(AH);
0 commit comments