Skip to content

Commit d07dc92

Browse files
committed
do not consider rel->joininfo in pathman_rel_pathlist_hook()
1 parent e50016d commit d07dc92

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hooks.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,7 @@ pathman_rel_pathlist_hook(PlannerInfo *root,
436436
return;
437437

438438
/* Get partitioning-related clauses */
439-
part_clauses = get_partitioning_clauses(list_union(rel->baserestrictinfo,
440-
rel->joininfo),
441-
prel, rti);
439+
part_clauses = get_partitioning_clauses(rel->baserestrictinfo, prel, rti);
442440

443441
/* Skip if there's no PARAMs in partitioning-related clauses */
444442
if (!clause_contains_params((Node *) part_clauses))

0 commit comments

Comments
 (0)