diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/config.sgml | 24 | ||||
-rw-r--r-- | doc/src/sgml/ref/initdb.sgml | 14 |
2 files changed, 38 insertions, 0 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 8c520e1267b..95de86441e4 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -6629,6 +6629,30 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1) </listitem> </varlistentry> + <varlistentry id="guc-ignore-checksum-failure" xreflabel="ignore_checksum_failure"> + <term><varname>ignore_checksum_failure</varname> (<type>boolean</type>)</term> + <indexterm> + <primary><varname>ignore_checksum_failure</> configuration parameter</primary> + </indexterm> + <listitem> + <para> + Only has effect if <xref linkend="app-initdb-data-checksums"> are enabled. + </para> + <para> + Detection of a checksum failure during a read normally causes + <productname>PostgreSQL</> to report an error, aborting the current + transaction. Setting <varname>ignore_checksum_failure</> to on causes + the system to ignore the failure (but still report a warning), and + continue processing. This behavior may <emphasis>cause crashes, propagate + or hide corruption, or other serious problems</>. However, it may allow + you to get past the error and retrieve undamaged tuples that might still be + present in the table if the block header is still sane. If the header is + corrupt an error will be reported even if this option is enabled. The + default setting is <literal>off</>, and it can only be changed by a superuser. + </para> + </listitem> + </varlistentry> + <varlistentry id="guc-zero-damaged-pages" xreflabel="zero_damaged_pages"> <term><varname>zero_damaged_pages</varname> (<type>boolean</type>)</term> <indexterm> diff --git a/doc/src/sgml/ref/initdb.sgml b/doc/src/sgml/ref/initdb.sgml index a1e46eb4c67..b1067e23505 100644 --- a/doc/src/sgml/ref/initdb.sgml +++ b/doc/src/sgml/ref/initdb.sgml @@ -182,6 +182,20 @@ PostgreSQL documentation </listitem> </varlistentry> + <varlistentry id="app-initdb-data-checksums" xreflabel="data checksums"> + <term><option>-k</option></term> + <term><option>--data-checksums</option></term> + <listitem> + <para> + Use checksums on data pages to help detect corruption by the + I/O system that would otherwise be silent. Enabling checksums + may incur a noticeable performance penalty. This option can only + be set during initialization, and cannot be changed later. If + set, checksums are calculated for all objects, in all databases. + </para> + </listitem> + </varlistentry> + <varlistentry> <term><option>--locale=<replaceable>locale</replaceable></option></term> <listitem> |