aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-10-19 23:45:31 -0400
committerRobert Haas <rhaas@postgresql.org>2011-10-19 23:45:31 -0400
commit1d751018d881f415a61787424d900ae8a7126da3 (patch)
tree3ac645c6f27806680626187e9e49a409aff98081 /src
parent0bf08994934d8e561c2cacc4fb4fc7e7eb602d2e (diff)
downloadpostgresql-1d751018d881f415a61787424d900ae8a7126da3.tar.gz
postgresql-1d751018d881f415a61787424d900ae8a7126da3.zip
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
Diffstat (limited to 'src')
-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 3dbc9329267..5dde78abc9a 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 dab73aaba60..d29077657f7 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;