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 7481262 commit deb1580Copy full SHA for deb1580
src/bin/pg_dump/pg_dumpall.c
@@ -441,7 +441,12 @@ main(int argc, char *argv[])
441
if (verbose)
442
dumpTimestamp("Started on");
443
444
- fprintf(OPF, "\\connect postgres\n\n");
+ /*
445
+ * We used to emit \connect postgres here, but that served no purpose
446
+ * other than to break things for installations without a postgres
447
+ * database. Everything we're restoring here is a global, so whichever
448
+ * database we're connected to at the moment is fine.
449
+ */
450
451
/* Replicate encoding and std_strings in output */
452
fprintf(OPF, "SET client_encoding = '%s';\n",
0 commit comments