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

Commit 524baca

Browse files
committed
do not add children to parent rel's relids
1 parent 864fdab commit 524baca

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pg_pathman.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -526,15 +526,6 @@ pathman_set_rel_pathlist_hook(PlannerInfo *root, RelOptInfo *rel, Index rti, Ran
526526
/* Clear old path list */
527527
list_free(rel->pathlist);
528528

529-
/* Set apropriate varnos */
530-
if (first_child_relid)
531-
{
532-
change_varnos((Node *) root->canon_pathkeys, rti, first_child_relid);
533-
change_varnos((Node *) root->eq_classes, rti, first_child_relid);
534-
change_varnos((Node *) root->parse->targetList, rti, first_child_relid);
535-
change_varnos((Node *) rel->reltargetlist, rti, first_child_relid);
536-
}
537-
538529
rel->pathlist = NIL;
539530
set_append_rel_pathlist(root, rel, rti, rte, pathkeyAsc, pathkeyDesc);
540531
set_append_rel_size(root, rel, rti, rte);
@@ -712,9 +703,6 @@ append_child_relation(PlannerInfo *root, RelOptInfo *rel, Index rti,
712703
}
713704
childrel->has_eclass_joins = rel->has_eclass_joins;
714705

715-
/* Add child to relids */
716-
rel->relids = bms_add_member(rel->relids, childRTindex);
717-
718706
/* Recalc parent relation tuples count */
719707
rel->tuples += childrel->tuples;
720708

0 commit comments

Comments
 (0)