]> granicus.if.org Git - postgresql/commitdiff
Can't print PlannerGlobal's subroots list in outfuncs.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Sep 2011 18:43:52 +0000 (14:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Sep 2011 18:43:52 +0000 (14:43 -0400)
Since the subroots will surely link back to the same glob struct, this
necessarily leads to infinite recursion.  Doh.  Found while trying to
debug some other code.

src/backend/nodes/outfuncs.c

index 88cde3956c12ff7ad31110ff8ab4188014473c55..0d0ce3c20341d19c526f1968fc65ae5702c57a10 100644 (file)
@@ -1654,7 +1654,6 @@ _outPlannerGlobal(StringInfo str, PlannerGlobal *node)
        /* NB: this isn't a complete set of fields */
        WRITE_NODE_FIELD(paramlist);
        WRITE_NODE_FIELD(subplans);
-       WRITE_NODE_FIELD(subroots);
        WRITE_BITMAPSET_FIELD(rewindPlanIDs);
        WRITE_NODE_FIELD(finalrtable);
        WRITE_NODE_FIELD(finalrowmarks);