summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas2011-10-20 03:45:31 +0000
committerRobert Haas2011-10-20 03:45:31 +0000
commit1d751018d881f415a61787424d900ae8a7126da3 (patch)
tree3ac645c6f27806680626187e9e49a409aff98081
parent0bf08994934d8e561c2cacc4fb4fc7e7eb602d2e (diff)
Add "skipping" to the NOTICE produced by DROP OPERATOR CLASS IF EXISTS.
This makes this message consistent with all the other similar notices produced by other DROP IF EXISTS commands. Noted by KaiGai Kohei
-rw-r--r--src/backend/commands/opclasscmds.c2
-rw-r--r--src/test/regress/expected/drop_if_exists.out2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/opclasscmds.c b/src/backend/commands/opclasscmds.c
index 3dbc932926..5dde78abc9 100644
--- a/src/backend/commands/opclasscmds.c
+++ b/src/backend/commands/opclasscmds.c
@@ -1564,7 +1564,7 @@ RemoveOpClass(RemoveOpClassStmt *stmt)
if (!HeapTupleIsValid(tuple))
{
ereport(NOTICE,
- (errmsg("operator class \"%s\" does not exist for access method \"%s\"",
+ (errmsg("operator class \"%s\" does not exist for access method \"%s\", skipping",
NameListToString(stmt->opclassname), stmt->amname)));
return;
}
diff --git a/src/test/regress/expected/drop_if_exists.out b/src/test/regress/expected/drop_if_exists.out
index dab73aaba6..d29077657f 100644
--- a/src/test/regress/expected/drop_if_exists.out
+++ b/src/test/regress/expected/drop_if_exists.out
@@ -205,7 +205,7 @@ NOTICE: server "test_server_exists" does not exist, skipping
DROP OPERATOR CLASS test_operator_class USING btree;
ERROR: operator class "test_operator_class" does not exist for access method "btree"
DROP OPERATOR CLASS IF EXISTS test_operator_class USING btree;
-NOTICE: operator class "test_operator_class" does not exist for access method "btree"
+NOTICE: operator class "test_operator_class" does not exist for access method "btree", skipping
DROP OPERATOR CLASS test_operator_class USING no_such_am;
ERROR: access method "no_such_am" does not exist
DROP OPERATOR CLASS IF EXISTS test_operator_class USING no_such_am;