Skip to content

Commit 027fe76

Browse files
committed
don't modify parent's clauses in create_append_plan_common()
1 parent 7889887 commit 027fe76

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: src/nodes_common.c

-8
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,6 @@ create_append_plan_common(PlannerInfo *root, RelOptInfo *rel,
372372
{
373373
Plan *child_plan = (Plan *) lfirst(lc2);
374374
RelOptInfo *child_rel = ((Path *) lfirst(lc1))->parent;
375-
Oid child_relid;
376-
377-
/* Fetch relid of the 'child_rel' */
378-
child_relid = root->simple_rte_array[child_rel->relid]->relid;
379375

380376
/* Replace rel's tlist with a matching one */
381377
if (!cscan->scan.plan.targetlist)
@@ -390,10 +386,6 @@ create_append_plan_common(PlannerInfo *root, RelOptInfo *rel,
390386
if (!cscan->custom_scan_tlist)
391387
cscan->custom_scan_tlist = replace_tlist_varnos(child_plan->targetlist,
392388
rel);
393-
394-
/* If this is a plan for parent table, fill it with quals */
395-
if (PrelParentRelid(prel) == child_relid)
396-
child_plan->qual = get_actual_clauses(clauses);
397389
}
398390
}
399391

0 commit comments

Comments
 (0)