From: Bruce Momjian Date: Mon, 8 Mar 2004 21:35:59 +0000 (+0000) Subject: Add comment about why ON COMMENT in non-current database throws just an X-Git-Tag: REL8_0_0BETA1~1045 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4679e875c0083be6926c19dc15c33a1904a99c38;p=postgresql Add comment about why ON COMMENT in non-current database throws just an warning. --- diff --git a/src/backend/commands/comment.c b/src/backend/commands/comment.c index 8d058fab55..423ab97570 100644 --- a/src/backend/commands/comment.c +++ b/src/backend/commands/comment.c @@ -7,7 +7,7 @@ * Copyright (c) 1996-2003, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.75 2003/11/29 19:51:47 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.76 2004/03/08 21:35:59 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -462,7 +462,7 @@ CommentDatabase(List *qualname, char *comment) /* Only allow comments on the current database */ if (oid != MyDatabaseId) { - ereport(WARNING, + ereport(WARNING, /* throw just a warning so pg_restore doesn't fail */ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("database comments may only be applied to the current database"))); return;