Modified to work well with data checksum mechanism of PostgreSQL 9.3.x