8000
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 5d6899d commit 2930c05Copy full SHA for 2930c05
src/bin/pg_dump/pg_backup_db.c
@@ -300,7 +300,8 @@ ConnectDatabase(Archive *AHX,
300
/* check to see that the backend connection was successfully made */
301
if (PQstatus(AH->connection) == CONNECTION_BAD)
302
exit_horribly(modulename, "connection to database \"%s\" failed: %s",
303
- PQdb(AH->connection), PQerrorMessage(AH->connection));
+ PQdb(AH->connection) ? PQdb(AH->connection) : "",
304
+ PQerrorMessage(AH->connection));
305
306
/* check for version mismatch */
307
_check_database_version(AH);
0 commit comments