Skip to content

Commit 3b65c3b

Browse files
committed
Add comment about COMMENT ON DATABASE failing for differently-named
databases.
1 parent 5e996e4 commit 3b65c3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.477 2007/11/15 22:25:16 momjian Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.478 2007/11/19 18:44:06 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -1530,6 +1530,7 @@ dumpDatabase(Archive *AH)
15301530
if (comment && strlen(comment))
15311531
{
15321532
resetPQExpBuffer(dbQry);
1533+
/* This will fail when loaded into a database with a different name. */
15331534
appendPQExpBuffer(dbQry, "COMMENT ON DATABASE %s IS ", fmtId(datname));
15341535
appendStringLiteralAH(dbQry, comment, AH);
15351536
appendPQExpBuffer(dbQry, ";\n");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy