Compare varnullingrels too in assign_param_for_var().
commit807369d80384cdaa696cd65b4fcee46e32142344
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2024 20:54:17 +0000 (26 15:54 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2024 20:54:17 +0000 (26 15:54 -0500)
tree44f69c75d4fd5dc33f13bcfed491a10f0d10b233
parent7204aea835d056ca97e86298c597a079d6ee8c97
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