]> begriffs open source - ai-pg/blob - full-docs/txt/checksums.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / checksums.txt
1
2 28.2. Data Checksums #
3
4    28.2.1. Off-line Enabling of Checksums
5
6    By default, data pages are protected by checksums, but this can
7    optionally be disabled for a cluster. When enabled, each data page
8    includes a checksum that is updated when the page is written and
9    verified each time the page is read. Only data pages are protected by
10    checksums; internal data structures and temporary files are not.
11
12    Checksums can be disabled when the cluster is initialized using initdb.
13    They can also be enabled or disabled at a later time as an offline
14    operation. Data checksums are enabled or disabled at the full cluster
15    level, and cannot be specified individually for databases or tables.
16
17    The current state of checksums in the cluster can be verified by
18    viewing the value of the read-only configuration variable
19    data_checksums by issuing the command SHOW data_checksums.
20
21    When attempting to recover from page corruptions, it may be necessary
22    to bypass the checksum protection. To do this, temporarily set the
23    configuration parameter ignore_checksum_failure.
24
25 28.2.1. Off-line Enabling of Checksums #
26
27    The pg_checksums application can be used to enable or disable data
28    checksums, as well as verify checksums, on an offline cluster.