postgresql/src/include/executor
Tom Lane a0185461dd Rearrange the implementation of index-only scans.
This commit changes index-only scans so that data is read directly from the
index tuple without first generating a faux heap tuple.  The only immediate
benefit is that indexes on system columns (such as OID) can be used in
index-only scans, but this is necessary infrastructure if we are ever to
support index-only scans on expression indexes.  The executor is now ready
for that, though the planner still needs substantial work to recognize
the possibility.

To do this, Vars in index-only plan nodes have to refer to index columns
not heap columns.  I introduced a new special varno, INDEX_VAR, to mark
such Vars to avoid confusion.  (In passing, this commit renames the two
existing special varnos to OUTER_VAR and INNER_VAR.)  This allows
ruleutils.c to handle them with logic similar to what we use for subplan
reference Vars.

Since index-only scans are now fundamentally different from regular
indexscans so far as their expression subtrees are concerned, I also chose
to change them to have their own plan node type (and hence, their own
executor source file).
2011-10-11 14:21:30 -04:00
..
execdebug.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
execdesc.h Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
executor.h Install defenses against overflow in BuildTupleHashTable(). 2011-05-23 12:52:46 -04:00
functions.h Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
hashjoin.h Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
instrument.h Make EXPLAIN ANALYZE report the numbers of rows rejected by filter steps. 2011-09-22 11:30:11 -04:00
nodeAgg.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeAppend.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeBitmapAnd.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeBitmapHeapscan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeBitmapIndexscan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeBitmapOr.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeCtescan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeForeignscan.h Implement an API to let foreign-data wrappers actually be functional. 2011-02-20 00:18:14 -05:00
nodeFunctionscan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeGroup.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeHash.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
nodeHashjoin.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeIndexonlyscan.h Rearrange the implementation of index-only scans. 2011-10-11 14:21:30 -04:00
nodeIndexscan.h Rearrange the implementation of index-only scans. 2011-10-11 14:21:30 -04:00
nodeLimit.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeLockRows.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeMaterial.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeMergeAppend.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeMergejoin.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeModifyTable.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeNestloop.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeRecursiveunion.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeResult.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeSeqscan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeSetOp.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeSort.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeSubplan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeSubqueryscan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeTidscan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeUnique.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeValuesscan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeWindowAgg.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodeWorktablescan.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
spi.h Redesign the plancache mechanism for more flexibility and efficiency. 2011-09-16 00:43:52 -04:00
spi_priv.h Redesign the plancache mechanism for more flexibility and efficiency. 2011-09-16 00:43:52 -04:00
tstoreReceiver.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
tuptable.h Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00