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

Commit4679e87

Browse files
committed
Add comment about why ON COMMENT in non-current database throws just an
warning.
1 parentfb5eb6a commit4679e87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/commands/comment.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1996-2003, PostgreSQL Global Development Group
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.75 2003/11/29 19:51:47 pgsql Exp $
10+
* $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.76 2004/03/08 21:35:59 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -462,7 +462,7 @@ CommentDatabase(List *qualname, char *comment)
462462
/* Only allow comments on the current database */
463463
if (oid!=MyDatabaseId)
464464
{
465-
ereport(WARNING,
465+
ereport(WARNING,/* throw just a warning so pg_restore doesn't fail */
466466
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
467467
errmsg("database comments may only be applied to the current database")));
468468
return;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp