Compare varnullingrels too in assign_param_for_var().
authorTom Lane
Fri, 26 Jan 2024 20:54:17 +0000 (15:54 -0500)
committerTom Lane
Fri, 26 Jan 2024 20:54:17 +0000 (15:54 -0500)
commit5e444a2526cc6f4052ce0004e1df69135c47338a
tree0e162b1487b193014fa19d20ecd902c0e1bf87c2
parent25cd2d64021ae081cbcef1592e0ee04ddda2e975
Compare varnullingrels too in assign_param_for_var().

Oversight in 2489d76c4.  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
src/backend/optimizer/util/paramassign.c