Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
27.2. Data Checksums
Prev UpChapter 27. Reliability and the Write-Ahead LogHome Next

27.2. Data Checksums#

By default, data pages are not protected by checksums, but this can optionally be enabled for a cluster. When enabled, each data page includes a checksum that is updated when the page is written and verified each time the page is read. Only data pages are protected by checksums; internal data structures and temporary files are not.

Checksums are normally enabled when the cluster is initialized usinginitdb. They can also be enabled or disabled at a later time as an offline operation. Data checksums are enabled or disabled at the full cluster level, and cannot be specified individually for databases or tables.

The current state of checksums in the cluster can be verified by viewing the value of the read-only configuration variabledata_checksums by issuing the commandSHOW data_checksums.

When attempting to recover from page corruptions, it may be necessary to bypass the checksum protection. To do this, temporarily set the configuration parameterignore_checksum_failure.

27.2.1. Off-line Enabling of Checksums#

Thepg_checksums application can be used to enable or disable data checksums, as well as verify checksums, on an offline cluster.


Prev Up Next
27.1. Reliability Home 27.3. Write-Ahead Logging (WAL)
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp