citus/src
Colm McHugh 0b20a9bbd8 Fix #7782, #7783 - catch when Postgres planner removes Citus tables
DESCRIPTION: fix a planning error caused by a redundant WHERE clause
(of the form WHERE true OR <expression>)

Fix a Citus planning glitch, where the WHERE clause of
the query is of the form:
` WHERE true OR <expression with 1 or more citus tables> `
and this is the only place in the query referencing a citus
table. Postgres' standard planner transforms the WHERE clause to:
` WHERE true `
So the query now has no citus tables, confusing the Citus planner
as described in issues #7782 and #7783. The fix is to check, after
Postgres standard planner, if the Query has been transformed as
shown, and re-run the check of whether or not the query needs
distributed planning.
2025-02-26 12:05:24 +00:00
..
backend Fix #7782, #7783 - catch when Postgres planner removes Citus tables 2025-02-26 12:05:24 +00:00
include Fix 0-Task Plans in Single-Shard Router When Updating a Local Table with Reference Table in Subquery (#7897) 2025-02-25 20:49:32 +03:00
test Fix #7782, #7783 - catch when Postgres planner removes Citus tables 2025-02-26 12:05:24 +00:00