-
- Downloads
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.
Showing
- src/backend/access/heap/tuptoaster.c 23 additions, 20 deletionssrc/backend/access/heap/tuptoaster.c
- src/backend/access/index/genam.c 85 additions, 1 deletionsrc/backend/access/index/genam.c
- src/backend/access/index/indexam.c 2 additions, 46 deletionssrc/backend/access/index/indexam.c
- src/backend/catalog/catalog.c 11 additions, 16 deletionssrc/backend/catalog/catalog.c
- src/backend/storage/large_object/inv_api.c 26 additions, 25 deletionssrc/backend/storage/large_object/inv_api.c
- src/backend/utils/cache/ts_cache.c 6 additions, 5 deletionssrc/backend/utils/cache/ts_cache.c
- src/include/access/genam.h 8 additions, 3 deletionssrc/include/access/genam.h
- src/include/access/relscan.h 4 additions, 6 deletionssrc/include/access/relscan.h
- src/include/catalog/catalog.h 3 additions, 2 deletionssrc/include/catalog/catalog.h
Loading
Please register or sign in to comment