aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-11-09 15:46:16 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2023-11-09 15:46:16 -0500
commit36f5594c0fe694600c07c803324b51fcfbea4079 (patch)
tree58030a810cf03c61335c7c293320acbcdd8fdc8b /src/backend/utils/adt/arrayutils.c
parentb630d9d6c82aeb540c92faf220b837cc71a1416c (diff)
downloadpostgresql-36f5594c0fe694600c07c803324b51fcfbea4079.tar.gz
postgresql-36f5594c0fe694600c07c803324b51fcfbea4079.zip
Fix computation of varnullingrels when const-folding field selection.
We can simplify FieldSelect on a whole-row Var into a plain Var for the selected field. However, we should copy the whole-row Var's varnullingrels when we do so, because the new Var is clearly nullable by exactly the same rels as the original. Failure to do this led to errors like "wrong varnullingrels (b) (expected (b 3)) for Var 2/2". Richard Guo, per bug #18184 from Marian Krucina. Back-patch to v16 where varnullingrels was introduced. Discussion: https://postgr.es/m/18184-5868dd258782058e@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/arrayutils.c')
0 files changed, 0 insertions, 0 deletions