Compare varnullingrels too in assign_param_for_var().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 807369d80384cdaa696cd65b4fcee46e32142344
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-01-26T20:54:17Z
Releases: 16.2
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

Files

PathChange+/−
src/backend/optimizer/util/paramassign.c modified +2 −1

Discussion