• Robert Haas's avatar
    Fix lazy_scan_heap so that it won't mark pages all-frozen too soon. · 38e9f90a
    Robert Haas authored
    Commit a892234f added a new bit per
    page to the visibility map fork indicating whether the page is
    all-frozen, but incorrectly assumed that if lazy_scan_heap chose to
    freeze a tuple then that tuple would not need to later be frozen
    again. This turns out to be false, because xmin and xmax (and
    conceivably xvac, if dealing with tuples from very old releases) could
    be frozen at separate times.
    
    Thanks to Andres Freund for help in uncovering and tracking down this
    issue.
    38e9f90a
vacuumlazy.c 65.5 KB