From d41d9e14358bdaf0a3bea578248dbcac7b5379c1 Mon Sep 17 00:00:00 2001 From: Sofia Kopikova Date: Thu, 15 Aug 2024 18:25:55 +0300 Subject: [PATCH] Fix pathman_join_pathlist_hook function to avoid fail on new assert in build_join_pathkeys postgres function. Caused by: - aa86129e19d7 Support "Right Semi Join" plan shapes --- src/hooks.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hooks.c b/src/hooks.c index 2ff2667c..6279dbd2 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -126,6 +126,11 @@ pathman_join_pathlist_hook(PlannerInfo *root, jointype == JOIN_UNIQUE_INNER) return; +#if PG_VERSION_NUM >= 170000 + if (jointype == JOIN_RIGHT_SEMI) + return; +#endif + /* Skip if inner table is not allowed to act as parent (e.g. FROM ONLY) */ if (PARENTHOOD_DISALLOWED == get_rel_parenthood_status(inner_rte)) return;