Create new routines systable_beginscan_ordered, systable_getnext_ordered,
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Apr 2008 23:14:21 +0000 (23:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Apr 2008 23:14:21 +0000 (23:14 +0000)
commit447f7364dd7227a32b58a2aff24f587dd7d7051a
treeee12bc595e6e2e88cf1eede4b25186e9932399fb
parent94aa04d2e8b670581dbcba2547c7e9dea427600f
Create new routines systable_beginscan_ordered, systable_getnext_ordered,
systable_endscan_ordered that have API similar to systable_beginscan etc
(in particular, the passed-in scankeys have heap not index attnums),
but guarantee ordered output, unlike the existing functions.  For the moment
these are just very thin wrappers around index_beginscan/index_getnext/etc.
Someday they might need to get smarter; but for now this is just a code
refactoring exercise to reduce the number of direct callers of index_getnext,
in preparation for changing that function's API.

In passing, remove index_getnext_indexitem, which has been dead code for
quite some time, and will have even less use than that in the presence
of run-time-lossy indexes.
src/backend/access/heap/tuptoaster.c
src/backend/access/index/genam.c
src/backend/access/index/indexam.c
src/backend/catalog/catalog.c
src/backend/storage/large_object/inv_api.c
src/backend/utils/cache/ts_cache.c
src/include/access/genam.h
src/include/access/relscan.h
src/include/catalog/catalog.h