Skip to content

Commit 9074861

Browse files
committed
pathman: do not add children to parent rel's relids
1 parent 4a4cbbf commit 9074861

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

contrib/pg_pathman/pg_pathman.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,6 @@ append_child_relation(PlannerInfo *root, RelOptInfo *rel, Index rti,
717717
}
718718
childrel->has_eclass_joins = rel->has_eclass_joins;
719719

720-
/* Add child to relids */
721-
rel->relids = bms_add_member(rel->relids, childRTindex);
722-
root->all_baserels = bms_add_member(root->all_baserels, childRTindex);
723-
724720
/* Recalc parent relation tuples count */
725721
rel->tuples += childrel->tuples;
726722

0 commit comments

Comments
 (0)