Skip to content

Commit

Permalink
Fix pathman_join_pathlist_hook function to avoid fail on new assert in
Browse files Browse the repository at this point in the history
build_join_pathkeys postgres function.

Caused by:
- aa86129e19d7
  Support "Right Semi Join" plan shapes
  • Loading branch information
Sofia Kopikova committed Aug 20, 2024
1 parent 3c36220 commit d41d9e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d41d9e1

Please sign in to comment.