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/[email protected] Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/807369d80384cdaa696cd65b4fcee46e32142344 Modified Files -------------- src/backend/optimizer/util/paramassign.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
