Skip to content

Commit 4679e87

Browse files
committed
Add comment about why ON COMMENT in non-current database throws just an
warning.
1 parent fb5eb6a commit 4679e87

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)
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