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

Lines changed: 4 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy