Skip to content

Commit 33c4a77

Browse files
committed
Avoid infinite recursion when dumping new planner EquivalenceClass trees.
1 parent 4465529 commit 33c4a77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/nodes/outfuncs.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.296 2007/02/03 14:06:54 petere Exp $
11+
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.297 2007/02/12 17:19:30 tgl Exp $
1212
*
1313
* NOTES
1414
* Every node type that can appear in stored rules' parsetrees *must*
@@ -1354,10 +1354,10 @@ _outRestrictInfo(StringInfo str, RestrictInfo *node)
13541354
WRITE_BITMAPSET_FIELD(left_relids);
13551355
WRITE_BITMAPSET_FIELD(right_relids);
13561356
WRITE_NODE_FIELD(orclause);
1357-
WRITE_NODE_FIELD(parent_ec);
1357+
/* don't write parent_ec, leads to infinite recursion in plan tree dump */
13581358
WRITE_NODE_FIELD(mergeopfamilies);
1359-
WRITE_NODE_FIELD(left_ec);
1360-
WRITE_NODE_FIELD(right_ec);
1359+
/* don't write left_ec, leads to infinite recursion in plan tree dump */
1360+
/* don't write right_ec, leads to infinite recursion in plan tree dump */
13611361
WRITE_NODE_FIELD(left_em);
13621362
WRITE_NODE_FIELD(right_em);
13631363
WRITE_BOOL_FIELD(outer_is_left);

0 commit comments

Comments
 (0)