• T
    Fix a violation of WAL coding rules in the recent patch to include an · 7fc7a7c4
    Tom Lane 提交于
    "all tuples visible" flag in heap page headers.  The flag update *must*
    be applied before calling XLogInsert, but heap_update and the tuple
    moving routines in VACUUM FULL were ignoring this rule.  A crash and
    replay could therefore leave the flag incorrectly set, causing rows
    to appear visible in seqscans when they should not be.  This might explain
    recent reports of data corruption from Jeff Ross and others.
    
    In passing, do a bit of editorialization on comments in visibilitymap.c.
    7fc7a7c4
heapam.c 140.8 KB