|
196 | 196 | Data pages are not currently checksummed by default, though full page images
|
197 | 197 | recorded in WAL records will be protected; see <link
|
198 | 198 | linkend="app-initdb-data-checksums"><application>initdb</application></link>
|
199 |
| - for details about enabling data page checksums. |
| 199 | + for details about enabling data checksums. |
200 | 200 | </para>
|
201 | 201 | </listitem>
|
202 | 202 | <listitem>
|
|
230 | 230 | </para>
|
231 | 231 | </sect1>
|
232 | 232 |
|
| 233 | + <sect1 id="checksums"> |
| 234 | + <title>Data Checksums</title> |
| 235 | + <indexterm> |
| 236 | + <primary>checksums</primary> |
| 237 | + </indexterm> |
| 238 | + |
| 239 | + <para> |
| 240 | + Data pages are not checksum protected by default, but this can optionally be |
| 241 | + enabled for a cluster. When enabled, each data page will be assigned a |
| 242 | + checksum that is updated when the page is written and verified every time |
| 243 | + the page is read. Only data pages are protected by checksums, internal data |
| 244 | + structures and temporary files are not. |
| 245 | + </para> |
| 246 | + |
| 247 | + <para> |
| 248 | + Checksums are normally enabled when the cluster is initialized using <link |
| 249 | + linkend="app-initdb-data-checksums"><application>initdb</application></link>. |
| 250 | + They can also be enabled or disabled at a later time as an offline |
| 251 | + operation. Data checksums are enabled or disabled at the full cluster |
| 252 | + level, and cannot be specified individually for databases or tables. |
| 253 | + </para> |
| 254 | + |
| 255 | + <para> |
| 256 | + The current state of checksums in the cluster can be verified by viewing the |
| 257 | + value of the read-only configuration variable <xref |
| 258 | + linkend="guc-data-checksums" /> by issuing the command <command>SHOW |
| 259 | + data_checksums</command>. |
| 260 | + </para> |
| 261 | + |
| 262 | + <para> |
| 263 | + When attempting to recover from corrupt data it may be necessary to bypass |
| 264 | + the checksum protection in order to recover data. To do this, temporarily |
| 265 | + set the configuration parameter <xref linkend="guc-ignore-checksum-failure" />. |
| 266 | + </para> |
| 267 | + |
| 268 | + <sect2 id="checksums-offline-enable-disable"> |
| 269 | + <title>Off-line Enabling of Checksums</title> |
| 270 | + |
| 271 | + <para> |
| 272 | + The <link linkend="app-pgchecksums"><application>pg_checksums</application></link> |
| 273 | + application can be used to enable or disable data checksums, as well as |
| 274 | + verify checksums, on an offline cluster. |
| 275 | + </para> |
| 276 | + |
| 277 | + </sect2> |
| 278 | + </sect1> |
| 279 | + |
233 | 280 | <sect1 id="wal-intro">
|
234 | 281 | <title>Write-Ahead Logging (<acronym>WAL</acronym>)</title>
|
235 | 282 |
|
|
0 commit comments