]> granicus.if.org Git - postgresql/commit
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)
commitec498cdcbb7e7b430acc7236ab19ef70f116441a
tree48ab9fa79a3b9ac79f58a6079c28328243312f56
parent00832809a0fe271487d6851af72d0d88246a5d94
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