• Tom Lane's avatar
    Refactor checksumming code to make it easier to use externally. · f0421634
    Tom Lane authored
    pg_filedump and other external utility programs are likely to want to be
    able to check Postgres page checksums.  To avoid messy duplication of code,
    move the checksumming functionality into an exported header file, much as
    we did awhile back for the CRC code.
    
    In passing, get rid of an unportable assumption that a static char[] array
    will be word-aligned, and do some other minor code beautification.
    f0421634
checksum.c 744 Bytes