Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d75101

Browse files
committed
Add "skipping" to the NOTICE produced by DROP OPERATOR CLASS IF EXISTS.
This makes this message consistent with all the other similar noticesproduced by other DROP IF EXISTS commands.Noted by KaiGai Kohei
1 parent0bf0899 commit1d75101

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/commands/opclasscmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ RemoveOpClass(RemoveOpClassStmt *stmt)
15641564
if (!HeapTupleIsValid(tuple))
15651565
{
15661566
ereport(NOTICE,
1567-
(errmsg("operator class \"%s\" does not exist for access method \"%s\"",
1567+
(errmsg("operator class \"%s\" does not exist for access method \"%s\", skipping",
15681568
NameListToString(stmt->opclassname),stmt->amname)));
15691569
return;
15701570
}

‎src/test/regress/expected/drop_if_exists.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ NOTICE: server "test_server_exists" does not exist, skipping
205205
DROP OPERATOR CLASS test_operator_class USING btree;
206206
ERROR: operator class "test_operator_class" does not exist for access method "btree"
207207
DROP OPERATOR CLASS IF EXISTS test_operator_class USING btree;
208-
NOTICE: operator class "test_operator_class" does not exist for access method "btree"
208+
NOTICE: operator class "test_operator_class" does not exist for access method "btree", skipping
209209
DROP OPERATOR CLASS test_operator_class USING no_such_am;
210210
ERROR: access method "no_such_am" does not exist
211211
DROP OPERATOR CLASS IF EXISTS test_operator_class USING no_such_am;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp