• Robert Haas's avatar
    Make VACUUM avoid waiting for a cleanup lock, where possible. · bbb6e559
    Robert Haas authored
    In a regular VACUUM, it's OK to skip pages for which a cleanup lock
    isn't immediately available; the next VACUUM will deal with them.  If
    we're scanning the entire relation to advance relfrozenxid, we might
    need to wait, but only if there are tuples on the page that actually
    require freezing.  These changes should greatly reduce the incidence
    of of vacuum processes getting "stuck".
    
    Simon Riggs and Robert Haas
    bbb6e559
vacuumlazy.c 42.5 KB