Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d41d9e1

Browse files
author
Sofia Kopikova
committed
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
1 parent 3c36220 commit d41d9e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hooks.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ pathman_join_pathlist_hook(PlannerInfo *root,
126126
jointype == JOIN_UNIQUE_INNER)
127127
return;
128128

129+
#if PG_VERSION_NUM >= 170000
130+
if (jointype == JOIN_RIGHT_SEMI)
131+
return;
132+
#endif
133+
129134
/* Skip if inner table is not allowed to act as parent (e.g. FROM ONLY) */
130135
if (PARENTHOOD_DISALLOWED == get_rel_parenthood_status(inner_rte))
131136
return;

0 commit comments

Comments
 (0)