PG17 regress test sanity: fix diffs in union_pushdown. (#7762)

Preserve the test error message by adjusting the query so that PG17
cannot pull it up to a join. Another instance of a subquery that can be
pulled up to a join with PG17 (#7745)

This should have been fixed in, but slipped by, #7745
pull/7764/head
Colm 2024-11-22 16:25:22 +00:00 committed by GitHub
parent 12dd9c1f6b
commit 1d0111aed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1409,7 +1409,7 @@ $$);
-- we hit https://github.com/citusdata/citus/blob/f00c63c33daf3d16f06462626ca14732b141ae7a/src/backend/distributed/planner/relation_restriction_equivalence.c#L235-L242
SELECT public.explain_has_distributed_subplan($$
EXPLAIN SELECT * FROM users_table_part u1 WHERE (value_1, user_id) IN
EXPLAIN SELECT * FROM users_table_part u1 WHERE (value_1 + random(), user_id) IN
(
SELECT u1.user_id, user_id FROM users_table_part
UNION

View File

@ -1068,7 +1068,7 @@ $$);
-- we hit https://github.com/citusdata/citus/blob/f00c63c33daf3d16f06462626ca14732b141ae7a/src/backend/distributed/planner/relation_restriction_equivalence.c#L235-L242
SELECT public.explain_has_distributed_subplan($$
EXPLAIN SELECT * FROM users_table_part u1 WHERE (value_1, user_id) IN
EXPLAIN SELECT * FROM users_table_part u1 WHERE (value_1 + random(), user_id) IN
(
SELECT u1.user_id, user_id FROM users_table_part
UNION