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 5e996e4 commit 3b65c3bCopy full SHA for 3b65c3b
src/bin/pg_dump/pg_dump.c
@@ -12,7 +12,7 @@
12
* by PostgreSQL
13
*
14
* IDENTIFICATION
15
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.477 2007/11/15 22:25:16 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.478 2007/11/19 18:44:06 momjian Exp $
16
17
*-------------------------------------------------------------------------
18
*/
@@ -1530,6 +1530,7 @@ dumpDatabase(Archive *AH)
1530
if (comment && strlen(comment))
1531
{
1532
resetPQExpBuffer(dbQry);
1533
+ /* This will fail when loaded into a database with a different name. */
1534
appendPQExpBuffer(dbQry, "COMMENT ON DATABASE %s IS ", fmtId(datname));
1535
appendStringLiteralAH(dbQry, comment, AH);
1536
appendPQExpBuffer(dbQry, ";\n");
0 commit comments