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

Commit5e444a2

Browse files
committed
Compare varnullingrels too in assign_param_for_var().
Oversight in2489d76. Preliminary analysis suggests that theproblem may be unreachable --- but if we did have instances ofthe same column with different varnullingrels, we'd surely needto treat them as different Params.Discussion:https://postgr.es/m/412552.1706203379@sss.pgh.pa.us
1 parent25cd2d6 commit5e444a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/optimizer/util/paramassign.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ assign_param_for_var(PlannerInfo *root, Var *var)
9090
pvar->varattno==var->varattno&&
9191
pvar->vartype==var->vartype&&
9292
pvar->vartypmod==var->vartypmod&&
93-
pvar->varcollid==var->varcollid)
93+
pvar->varcollid==var->varcollid&&
94+
bms_equal(pvar->varnullingrels,var->varnullingrels))
9495
returnpitem->paramId;
9596
}
9697
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp