This makes this message consistent with all the other similar notices
produced by other DROP IF EXISTS commands.
Noted by KaiGai Kohei
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;
}
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;