Remove useless rebuilding of subPlan list during ExecInitNode. Wouldn't
have been there to start with, except for overly enthusiastic copy-and- paste ...
This commit is contained in:
parent
13f466167d
commit
0ee2603455
@ -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)
|
|||||||
* 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user