Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b65c3b

Browse files
committed
Add comment about COMMENT ON DATABASE failing for differently-named
databases.
1 parent5e996e4 commit3b65c3b

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)

[8]ページ先頭

©2009-2025 Movatter.jp