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

Commit5c5138f

Browse files
committed
Fix DROP OPERATOR FAMILY IF EXISTS.
Essentially, the "IF EXISTS" portion was being ignored, and an errorthrown anyway if the opfamily did not exist.I broke this in commitfd1843f; sobackpatch to 9.1.X.Report and diagnosis by KaiGai Kohei.
1 parentd1d094e commit5c5138f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎src/backend/commands/opclasscmds.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,10 +1614,9 @@ RemoveOpFamily(RemoveOpFamilyStmt *stmt)
16141614
tuple=OpFamilyCacheLookup(amID,stmt->opfamilyname,stmt->missing_ok);
16151615
if (!HeapTupleIsValid(tuple))
16161616
{
1617-
ereport(ERROR,
1618-
(errcode(ERRCODE_UNDEFINED_OBJECT),
1619-
errmsg("operator family \"%s\" does not exist for access method \"%s\"",
1620-
NameListToString(stmt->opfamilyname),stmt->amname)));
1617+
ereport(NOTICE,
1618+
(errmsg("operator family \"%s\" does not exist for access method \"%s\", skipping",
1619+
NameListToString(stmt->opfamilyname),stmt->amname)));
16211620
return;
16221621
}
16231622

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp