citus/src/backend/distributed
Naisila Puka ba2088a1d9 Error out for queries with outer joins and pseudoconstant quals in PG<17 (#7937)
PG15 commit d1ef5631e620f9a5b6480a32bb70124c857af4f1
and PG16 commit 695f5deb7902865901eb2d50a70523af655c3a00
disallow replacing joins with scans in queries with pseudoconstant quals.
This commit prevents the set_join_pathlist_hook from being called
if any of the join restrictions is a pseudo-constant.
So in these cases, citus has no info on the join, never sees that
the query has an outer join, and ends up producing an incorrect plan.
PG17 fixes this by commit 9e9931d2bf40e2fea447d779c2e133c2c1256ef3
Therefore, we take this extra measure here for PG versions less than 17.
hasOuterJoin can never be true when set_join_pathlist_hook is absent.
2025-05-20 16:56:23 +02:00
..
cdc Actually sort includes after cherry-pick 2024-04-17 10:26:50 +02:00
clock Actually sort includes after cherry-pick 2024-04-17 10:26:50 +02:00
commands Propagates SECURITY LABEL ON ROLE stmt (#7304) (#7735) 2024-11-13 14:21:08 +03:00
connection Add missing volatile qualifier. (#7570) 2024-04-17 10:26:50 +02:00
deparser Propagates SECURITY LABEL ON ROLE stmt (#7304) (#7735) 2024-11-13 14:21:08 +03:00
executor Actually sort includes after cherry-pick 2024-04-17 10:26:50 +02:00
metadata AddressSanitizer: stack-use-after-scope on address in CreateBackground(backport to release-12.1) (#7965) 2025-04-25 11:34:42 +00:00
operations Propagates SECURITY LABEL ON ROLE stmt (#7304) (#7735) 2024-11-13 14:21:08 +03:00
planner Error out for queries with outer joins and pseudoconstant quals in PG<17 (#7937) 2025-05-20 16:56:23 +02:00
progress Actually sort includes after cherry-pick 2024-04-17 10:26:50 +02:00
relay Actually sort includes after cherry-pick 2024-04-17 10:26:50 +02:00
replication Propagates SECURITY LABEL ON ROLE stmt (#7304) (#7735) 2024-11-13 14:21:08 +03:00
shardsplit Actually sort includes after cherry-pick 2024-04-17 10:26:50 +02:00
sql Add citus_schema_move() function (#7180) 2023-09-08 12:03:53 +03:00
test Avoid re-assigning the global pid for client backends and bg workers when the application_name changes (#7791) 2024-12-24 09:34:08 +03:00
transaction For scenarios, such as, Bug 3697586: Server crashes when assigning distributed transaction: Raise an ERROR instead of a crash 2025-01-07 23:03:18 +03:00
utils Add missing volatile qualifier. (#7570) 2024-04-17 10:26:50 +02:00
worker Adds null check for node in HasRangeTableRef (#7604) 2024-05-28 08:54:40 +03:00
.gitignore Change SQL migration build process for easier reviews (#2951) 2019-09-13 18:44:27 +02:00
Makefile Makefile changes to build CDC in builddir for pgoutput and wal2json. (#6827) 2023-04-06 17:03:12 +05:30
citus--11.1-1.control Support citus_columnar as separate extension (#5911) 2022-07-13 21:08:29 -07:00
citus.control Bump Citus version into 12.1devel (#7061) 2023-07-14 13:12:30 +03:00
safeclib Compile safestringlib using regular configure 2020-03-19 11:52:20 +01:00
shared_library_init.c Avoid re-assigning the global pid for client backends and bg workers when the application_name changes (#7791) 2024-12-24 09:34:08 +03:00