• Tom Lane's avatar
    Phase 2 of project to make index operator lossiness be determined at runtime · 24558da1
    Tom Lane authored
    instead of plan time.  Extend the amgettuple API so that the index AM returns
    a boolean indicating whether the indexquals need to be rechecked, and make
    that rechecking happen in nodeIndexscan.c (currently the only place where
    it's expected to be needed; other callers of index_getnext are just erroring
    out for now).  For the moment, GIN and GIST have stub logic that just always
    sets the recheck flag to TRUE --- I'm hoping to get Teodor to handle pushing
    that control down to the opclass consistent() functions.  The planner no
    longer pays any attention to amopreqcheck, and that catalog column will go
    away in due course.
    24558da1
gistget.c 12.5 KB