• S
    Allow I/O reliability checks using 16-bit checksums · ed0efd2a
    Simon Riggs 提交于
    Checksums are set immediately prior to flush out of shared buffers
    and checked when pages are read in again. Hint bit setting will
    require full page write when block is dirtied, which causes various
    infrastructure changes. Extensive comments, docs and README.
    
    WARNING message thrown if checksum fails on non-all zeroes page;
    ERROR thrown but can be disabled with ignore_checksum_failure = on.
    
    Feature enabled by an initdb option, since transition from option off
    to option on is long and complex and has not yet been implemented.
    Default is not to use checksums.
    
    Checksum used is WAL CRC-32 truncated to 16-bits.
    
    Simon Riggs, Jeff Davis, Greg Smith
    Wide input and assistance from many community members. Thank you.
    
    (cherry picked from commit 96ef3b8f)
    ed0efd2a
gistget.c 13.5 KB