Skip to content

Commit 6ca6feb

Browse files
committed
skip right outer joins in pathman_join_pathlist_hook()
1 parent 6280d4e commit 6ca6feb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ pathman_join_pathlist_hook(PlannerInfo *root,
7070
if (!IsPathmanReady() || !pg_pathman_enable_runtimeappend)
7171
return;
7272

73-
if (jointype == JOIN_FULL)
74-
return; /* handling full joins is meaningless */
73+
if (jointype == JOIN_FULL || jointype == JOIN_RIGHT)
74+
return; /* we can't handle full or right outer joins */
7575

7676
/* Check that innerrel is a BASEREL with inheritors & PartRelationInfo */
7777
if (innerrel->reloptkind != RELOPT_BASEREL || !inner_rte->inh ||

0 commit comments

Comments
 (0)