]> granicus.if.org Git - postgresql/commit
Add new function planstate_tree_walker.
authorRobert Haas <rhaas@postgresql.org>
Thu, 17 Sep 2015 15:24:49 +0000 (11:24 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 17 Sep 2015 15:27:06 +0000 (11:27 -0400)
commit8dd401aa07b91d46f81e51321523864d32843523
tree6f4074de97647b077785649c11775a79101eb5b4
parent293fd7c77e40cdf06b7a9eb6db95379be8869b04
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.
src/backend/commands/explain.c
src/backend/nodes/nodeFuncs.c
src/include/nodes/nodeFuncs.h