Add new function planstate_tree_walker.
Robert Haas <rhaas@postgresql.org>
Add new function planstate_tree_walker. ExplainPreScanNode knows how to iterate over a generic tree of plan states; factor that logic out into a separate walker function so that other code, such as upcoming patches for parallel query, can also use it. Patch by me, reviewed by Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +3 −90 |
| src/backend/nodes/nodeFuncs.c | modified | +125 −0 |
| src/include/nodes/nodeFuncs.h | modified | +4 −0 |