• Andres Freund's avatar
    Move generic snapshot related code from tqual.h to snapmgr.h. · b7eda3e0
    Andres Freund authored
    The code in tqual.c is largely heap specific. Due to the upcoming
    pluggable storage work, it therefore makes sense to move it into
    access/heap/ (as the file's header notes, the tqual name isn't very
    good).
    
    But the various statically allocated snapshot and snapshot
    initialization functions are now (see previous commit) generic and do
    not depend on functions declared in tqual.h anymore. Therefore move.
    Also move XidInMVCCSnapshot as that's useful for future AMs, and
    already used outside of tqual.c.
    
    Author: Andres Freund
    Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
    b7eda3e0
async.c 65.1 KB