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

src/nodes_common.c

Lines changed: 0 additions & 8 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy