]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove useless rebuilding of subPlan list during ExecInitNode. Wouldn't
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Mar 2004 22:17:34 +0000 (22:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Mar 2004 22:17:34 +0000 (22:17 +0000)
have been there to start with, except for overly enthusiastic copy-and-
paste ...

src/backend/executor/execProcnode.c

index 49a8018fc8d1575765d2552a5c69353d79e86aad..4a50c4bc9096c2cb6fbcd450f23adf0396cde760 100644 (file)
@@ -12,7 +12,7 @@
  *
  *
  * 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
         * contain subPlans (is that actually possible? perhaps not).
         */
-       subps = NIL;
        foreach(subp, result->subPlan)
        {
                SubPlanState *sstate = (SubPlanState *) lfirst(subp);
 
                Assert(IsA(sstate, SubPlanState));
                ExecInitSubPlan(sstate, estate);
-               subps = lappend(subps, sstate);
        }
-       result->subPlan = subps;
 
        /* Set up instrumentation for this node if requested */
        if (estate->es_instrument)