Skip to content
Snippets Groups Projects
Commit 0ee26034 authored by Tom Lane's avatar Tom Lane
Browse files

Remove useless rebuilding of subPlan list during ExecInitNode. Wouldn't

have been there to start with, except for overly enthusiastic copy-and-
paste ...
parent 13f46616
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/executor/execProcnode.c,v 1.41 2003/11/29 19:51:48 pgsql Exp $ * $PostgreSQL: pgsql/src/backend/executor/execProcnode.c,v 1.42 2004/03/02 22:17:34 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -242,16 +242,13 @@ ExecInitNode(Plan *node, EState *estate) ...@@ -242,16 +242,13 @@ ExecInitNode(Plan *node, EState *estate)
* do this after initializing initPlans, in case their arguments * do this after initializing initPlans, in case their arguments
* contain subPlans (is that actually possible? perhaps not). * contain subPlans (is that actually possible? perhaps not).
*/ */
subps = NIL;
foreach(subp, result->subPlan) foreach(subp, result->subPlan)
{ {
SubPlanState *sstate = (SubPlanState *) lfirst(subp); SubPlanState *sstate = (SubPlanState *) lfirst(subp);
Assert(IsA(sstate, SubPlanState)); Assert(IsA(sstate, SubPlanState));
ExecInitSubPlan(sstate, estate); ExecInitSubPlan(sstate, estate);
subps = lappend(subps, sstate);
} }
result->subPlan = subps;
/* Set up instrumentation for this node if requested */ /* Set up instrumentation for this node if requested */
if (estate->es_instrument) if (estate->es_instrument)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment