Extend the ExecInitNode API so that plan nodes receive a set of flag

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2c0ef9777cce8f97dd01073d962e6aa31722b5ad
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-02-28T04:10:28Z
Releases: 8.2.0
Extend the ExecInitNode API so that plan nodes receive a set of flag
bits indicating which optional capabilities can actually be exercised
at runtime.  This will allow Sort and Material nodes, and perhaps later
other nodes, to avoid unnecessary overhead in common cases.
This commit just adds the infrastructure and arranges to pass the correct
flag values down to plan nodes; none of the actual optimizations are here
yet.  I'm committing this separately in case anyone wants to measure the
added overhead.  (It should be negligible.)

Simon Riggs and Tom Lane

Files

PathChange+/−
src/backend/commands/explain.c modified +9 −2
src/backend/executor/execMain.c modified +11 −12
src/backend/executor/execProcnode.c modified +54 −31
src/backend/executor/functions.c modified +2 −2
src/backend/executor/nodeAgg.c modified +11 −3
src/backend/executor/nodeAppend.c modified +6 −3
src/backend/executor/nodeBitmapAnd.c modified +6 −3
src/backend/executor/nodeBitmapHeapscan.c modified +6 −3
src/backend/executor/nodeBitmapIndexscan.c modified +5 −2
src/backend/executor/nodeBitmapOr.c modified +6 −3
src/backend/executor/nodeFunctionscan.c modified +2 −2
src/backend/executor/nodeGroup.c modified +6 −3
src/backend/executor/nodeHash.c modified +6 −3
src/backend/executor/nodeHashjoin.c modified +11 −4
src/backend/executor/nodeIndexscan.c modified +2 −2
src/backend/executor/nodeLimit.c modified +6 −3
src/backend/executor/nodeMaterial.c modified +9 −4
src/backend/executor/nodeMergejoin.c modified +10 −4
src/backend/executor/nodeNestloop.c modified +14 −4
src/backend/executor/nodeResult.c modified +8 −4
src/backend/executor/nodeSeqscan.c modified +2 −2
src/backend/executor/nodeSetOp.c modified +6 −3
src/backend/executor/nodeSort.c modified +10 −5
src/backend/executor/nodeSubplan.c modified +15 −3
src/backend/executor/nodeSubqueryscan.c modified +6 −3
src/backend/executor/nodeTidscan.c modified +2 −2
src/backend/executor/nodeUnique.c modified +6 −3
src/backend/executor/spi.c modified +2 −2
src/backend/tcop/pquery.c modified +15 −5
src/include/executor/executor.h modified +36 −3
src/include/executor/nodeAgg.h modified +2 −2
src/include/executor/nodeAppend.h modified +2 −2
src/include/executor/nodeBitmapAnd.h modified +2 −2
src/include/executor/nodeBitmapHeapscan.h modified +2 −2
src/include/executor/nodeBitmapIndexscan.h modified +2 −2
src/include/executor/nodeBitmapOr.h modified +2 −2
src/include/executor/nodeFunctionscan.h modified +2 −2
src/include/executor/nodeGroup.h modified +2 −2
src/include/executor/nodeHash.h modified +2 −2
src/include/executor/nodeHashjoin.h modified +2 −2
src/include/executor/nodeIndexscan.h modified +2 −2
src/include/executor/nodeLimit.h modified +2 −2
src/include/executor/nodeMaterial.h modified +2 −2
src/include/executor/nodeMergejoin.h modified +2 −2
src/include/executor/nodeNestloop.h modified +2 −2
src/include/executor/nodeResult.h modified +2 −2
src/include/executor/nodeSeqscan.h modified +2 −2
src/include/executor/nodeSetOp.h modified +2 −2
src/include/executor/nodeSort.h modified +2 −2
src/include/executor/nodeSubplan.h modified +2 −2
src/include/executor/nodeSubqueryscan.h modified +2 −2
src/include/executor/nodeTidscan.h modified +2 −2
src/include/executor/nodeUnique.h modified +2 −2