Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5e444a2

Browse files
committed
Compare varnullingrels too in assign_param_for_var().
Oversight in 2489d76. Preliminary analysis suggests that the problem may be unreachable --- but if we did have instances of the same column with different varnullingrels, we'd surely need to treat them as different Params. Discussion: https://postgr.es/m/412552.1706203379@sss.pgh.pa.us
1 parent 25cd2d6 commit 5e444a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/optimizer/util/paramassign.c

+2-1
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
return pitem->paramId;
9596
}
9697
}

0 commit comments

Comments
 (0)