citus/src/test
Colm McHugh c72b9dd12b [Bug Fix] SEGV on query with Left Outer Join (#7787)
Fix the SEGV seen in #7787; it occurs because a column in the targetlist
of a worker subquery can contain a non-empty varnullingrels field if the
column is from the inner side of a left outer join.
The issue can also occur with the columns in the HAVING clause, and this
is also tested in the fix. The issue was triggered by the introduction
of the varnullingrels to Vars in Postgres 16 (2489d76c)

There is a related issue, #7705, where a non-empty varnullingrels
was incorrectly copied into the query tree for the combine query.
Here, a non-empty varnullingrels field of a var is incorrectly copied
into the query tree for a worker subquery.

The regress file from #7705 is used (and renamed) to also test this
(#7787). An alternative test output file is required for Postgres 15
because of an optimization to DISTINCT in Postgres 16 (1349d2790bf).
2024-12-24 02:59:04 +00:00
..
cdc Run wal2json cdc test for pg16 as well (#7361) 2023-11-24 14:40:23 +03:00
hammerdb rename citus hammerdb branch prefix as citus_github_push (#3925) 2020-06-18 21:11:58 +03:00
regress [Bug Fix] SEGV on query with Left Outer Join (#7787) 2024-12-24 02:59:04 +00:00