From: Tom Lane Date: Sun, 4 Sep 2011 18:43:52 +0000 (-0400) Subject: Can't print PlannerGlobal's subroots list in outfuncs. X-Git-Tag: REL9_2_BETA1~1149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=698df3350d37cdaa5b9fcbcb78b5ad5e66e99348;p=postgresql Can't print PlannerGlobal's subroots list in outfuncs. 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. --- diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 88cde3956c..0d0ce3c203 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -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);