|
7 | 7 | * Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
8 | 8 | *
|
9 | 9 | * 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 $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -462,7 +462,7 @@ CommentDatabase(List *qualname, char *comment)
|
462 | 462 | /* Only allow comments on the current database */
|
463 | 463 | if (oid!=MyDatabaseId)
|
464 | 464 | {
|
465 |
| -ereport(WARNING, |
| 465 | +ereport(WARNING,/* throw just a warning so pg_restore doesn't fail */ |
466 | 466 | (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
467 | 467 | errmsg("database comments may only be applied to the current database")));
|
468 | 468 | return;
|
|