Create executor and planner-backend support for decoupled heap and index

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

Commit: 4a8c5d0375f17d8d961a280cbb640996aaa8bf0d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-04-19T22:35:18Z
Releases: 8.1.0
Create executor and planner-backend support for decoupled heap and index
scans, using in-memory tuple ID bitmaps as the intermediary.  The planner
frontend (path creation and cost estimation) is not there yet, so none
of this code can be executed.  I have tested it using some hacked planner
code that is far too ugly to see the light of day, however.  Committing
now so that the bulk of the infrastructure changes go in before the tree
drifts under me.

Files

PathChange+/−
src/backend/commands/explain.c modified +81 −1
src/backend/executor/execAmi.c modified +22 −1
src/backend/executor/execProcnode.c modified +71 −1
src/backend/executor/Makefile modified +4 −2
src/backend/executor/nodeBitmapAnd.c added +208 −0
src/backend/executor/nodeBitmapHeapscan.c added +499 −0
src/backend/executor/nodeBitmapIndexscan.c added +519 −0
src/backend/executor/nodeBitmapOr.c added +209 −0
src/backend/nodes/copyfuncs.c modified +101 −1
src/backend/nodes/outfuncs.c modified +72 −4
src/backend/nodes/print.c modified +41 −11
src/backend/nodes/tidbitmap.c modified +2 −2
src/backend/optimizer/path/allpaths.c modified +4 −1
src/backend/optimizer/path/costsize.c modified +33 −1
src/backend/optimizer/path/joinpath.c modified +2 −1
src/backend/optimizer/plan/createplan.c modified +520 −37
src/backend/optimizer/plan/setrefs.c modified +26 −1
src/backend/optimizer/plan/subselect.c modified +47 −1
src/backend/optimizer/util/pathnode.c modified +34 −1
src/include/executor/nodeBitmapAnd.h added +25 −0
src/include/executor/nodeBitmapHeapscan.h added +25 −0
src/include/executor/nodeBitmapIndexscan.h added +25 −0
src/include/executor/nodeBitmapOr.h added +25 −0
src/include/executor/nodeIndexscan.h modified +1 −3
src/include/nodes/execnodes.h modified +71 −1
src/include/nodes/nodes.h modified +10 −1
src/include/nodes/plannodes.h modified +71 −2
src/include/nodes/relation.h modified +28 −1
src/include/optimizer/cost.h modified +3 −1
src/include/optimizer/pathnode.h modified +4 −1