@@ -526,15 +526,6 @@ pathman_set_rel_pathlist_hook(PlannerInfo *root, RelOptInfo *rel, Index rti, Ran
526
526
/* Clear old path list */
527
527
list_free (rel -> pathlist );
528
528
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
-
538
529
rel -> pathlist = NIL ;
539
530
set_append_rel_pathlist (root , rel , rti , rte , pathkeyAsc , pathkeyDesc );
540
531
set_append_rel_size (root , rel , rti , rte );
@@ -712,9 +703,6 @@ append_child_relation(PlannerInfo *root, RelOptInfo *rel, Index rti,
712
703
}
713
704
childrel -> has_eclass_joins = rel -> has_eclass_joins ;
714
705
715
- /* Add child to relids */
716
- rel -> relids = bms_add_member (rel -> relids , childRTindex );
717
-
718
706
/* Recalc parent relation tuples count */
719
707
rel -> tuples += childrel -> tuples ;
720
708
0 commit comments