Introduce new page checksum algorithm and module.
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 29 Apr 2013 08:05:27 +0000 (09:05 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 29 Apr 2013 08:05:27 +0000 (09:05 +0100)
commit43e7a668499b8a69a62cc539a0fbe6983384339c
tree572587c28e77d06c7ba08b75f736b833834e6752
parentf8db76e875099e5e49f5cd729a673e84c0b0471b
Introduce new page checksum algorithm and module.
Isolate checksum calculation to its own module, so that bufpage
knows little if anything about the details of the calculation.

This implementation is a modified FNV-1a hash checksum, details
of which are given in the new checksum.c header comments.

Basic implementation only, so we fix the output value.

Later related commits will add version numbers to pg_control,
compiler optimization flags and memory barriers.

Ants Aasma, reviewed by Jeff Davis and Simon Riggs
src/backend/storage/page/Makefile
src/backend/storage/page/bufpage.c
src/backend/storage/page/checksum.c [new file with mode: 0644]
src/include/storage/checksum.h [new file with mode: 0644]