First steps towards index scans with heap access decoupled from index
Tom Lane <tgl@sss.pgh.pa.us>
First steps towards index scans with heap access decoupled from index access: define new index access method functions 'amgetmulti' that can fetch multiple TIDs per call. (The functions exist but are totally untested as yet.) Since I was modifying pg_am anyway, remove the no-longer-needed 'rel' parameter from amcostestimate functions, and also remove the vestigial amowner column that was creating useless work for Alvaro's shared-object-dependencies project. Initdb forced due to changes in pg_am.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +14 −14 |
| doc/src/sgml/indexam.sgml | modified | +60 −25 |
| src/backend/access/gist/gistget.c | modified | +28 −1 |
| src/backend/access/hash/hash.c | modified | +70 −1 |
| src/backend/access/heap/heapam.c | modified | +23 −6 |
| src/backend/access/index/genam.c | modified | +2 −1 |
| src/backend/access/index/indexam.c | modified | +127 −39 |
| src/backend/access/nbtree/nbtree.c | modified | +74 −1 |
| src/backend/access/rtree/rtget.c | modified | +40 −6 |
| src/backend/optimizer/path/costsize.c | modified | +2 −3 |
| src/backend/utils/adt/selfuncs.c | modified | +37 −41 |
| src/include/access/genam.h | modified | +7 −1 |
| src/include/access/gist.h | modified | +2 −1 |
| src/include/access/hash.h | modified | +3 −2 |
| src/include/access/nbtree.h | modified | +3 −2 |
| src/include/access/relscan.h | modified | +8 −2 |
| src/include/access/rtree.h | modified | +3 −4 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_am.h | modified | +19 −19 |
| src/include/catalog/pg_proc.h | modified | +13 −5 |