Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit027fe76

Browse files
committed
don't modify parent's clauses in create_append_plan_common()
1 parent7889887 commit027fe76

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-
Oidchild_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)

[8]ページ先頭

©2009-2025 Movatter.jp