]> granicus.if.org Git - postgresql/commit
Change CRCs in WAL records from 64bit to 32bit for performance reasons.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2005 05:55:29 +0000 (05:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2005 05:55:29 +0000 (05:55 +0000)
commit21fda22ec46deb7734f793ef4d7fa6c226b4c78e
treecc1b5b2b79f41801cdd4123bdbcf475d1181024f
parentc196c7ae8b9a81c0427402ff19f510f884d1389a
Change CRCs in WAL records from 64bit to 32bit for performance reasons.
Instead of a separate CRC on each backup block, include backup blocks
in their parent WAL record's CRC; this is important to ensure that the
backup block really goes with the WAL record, ie there was not a page
tear right at the start of the backup block.  Implement a simple form
of compression of backup blocks: drop any run of zeroes starting at
pd_lower, so as not to store the unused 'hole' that commonly exists in
PG heap and index pages.  Tweak PageRepairFragmentation and related
routines to ensure they keep the unused space zeroed, so that the above
compression method remains effective.  All per recent discussions.
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtxlog.c
src/backend/access/transam/xlog.c
src/backend/storage/page/bufpage.c
src/backend/utils/hash/pg_crc.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/include/access/xlog.h
src/include/access/xlog_internal.h
src/include/catalog/pg_control.h
src/include/utils/pg_crc.h