• Tom Lane's avatar
    To support external compression of archived WAL data, add a flag bit to · a8d539f1
    Tom Lane authored
    WAL records that shows whether it is safe to remove full-page images
    (ie, whether or not an on-line backup was in progress when the WAL entry
    was made).  Also make provision for an XLOG_NOOP record type that can be
    used to fill in the extra space when decompressing the data for restore.
    
    This is the portion of Koichi Suzuki's "full page writes" patch that
    has to go into the core database.  The remainder of that work is two
    external compression and decompression programs, which for the time being
    will undergo separate development on pgfoundry.  Per discussion.
    
    Also, twiddle the handling of BTREE_SPLIT records to ensure it'll be
    possible to compress them (the previous coding caused essential info
    to be omitted).  The other commonly-used record types seem OK already,
    with the possible exception of GIN and GIST WAL records, which I don't
    understand well enough to opine on.
    a8d539f1
xlog.c 196 KB