• Tom Lane's avatar
    Create new routines systable_beginscan_ordered, systable_getnext_ordered, · ec498cdc
    Tom Lane authored
    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.
    ec498cdc
genam.h 5.33 KB