Compare varnullingrels too in assign_param_for_var().

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

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