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

Commit17a3f1c

Browse files
committed
Fix incorrect logic in plan dependency recording
Both50e17ad and29f45e2 mistakenly tried to record a plan dependencyon a function but mistakenly inverted the OidIsValid test. This meantthat we'd record a dependency only when the function's Oid wasInvalidOid. Clearly this was meant to *not* record the dependency inthat case.50e17ad made this mistake first, then in v1529f45e2 copied the samemistake.Reported-by: Tom LaneBackpatch-through: 14, where50e17ad first made this mistakeDiscussion:https://postgr.es/m/2277537.1694301772@sss.pgh.pa.us
1 parenta26cc03 commit17a3f1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/optimizer/plan/setrefs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,10 +1886,10 @@ fix_expr_common(PlannerInfo *root, Node *node)
18861886
set_sa_opfuncid(saop);
18871887
record_plan_function_dependency(root,saop->opfuncid);
18881888

1889-
if (!OidIsValid(saop->hashfuncid))
1889+
if (OidIsValid(saop->hashfuncid))
18901890
record_plan_function_dependency(root,saop->hashfuncid);
18911891

1892-
if (!OidIsValid(saop->negfuncid))
1892+
if (OidIsValid(saop->negfuncid))
18931893
record_plan_function_dependency(root,saop->negfuncid);
18941894
}
18951895
elseif (IsA(node,Const))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp