May 2019
Intermediate to advanced
600 pages
20h 46m
English
When the data checksum feature is enabled, each page header includes a 16-bit checksum of its contents and block number, which is updated when the page is flushed to disk.
If enabled, data checksums are verified every time a block is read from disk to shared buffers as well as when pg_basebackup is used to perform a backup.
Since the checksum is computed and added to the block when flushing to disk, a failure must be caused by a change inside the block that occurred while the block was not cached in the shared buffers; conversely, a change occurring while the block was buffered would be overwritten at the next flush.
Read now
Unlock full access