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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy