mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Validate page level checksums in base backups
When base backups are run over the replication protocol (for example using pg_basebackup), verify the checksums of all data blocks if checksums are enabled. If checksum failures are encountered, log them as warnings but don't abort the backup. This becomes the default behaviour in pg_basebackup (provided checksums are enabled on the server), so add a switch (-k) to disable the checks if necessary. Author: Michael Banck Reviewed-By: Magnus Hagander, David Steele Discussion: https://postgr.es/m/20180228180856.GE13784@nighthawk.caipicrew.dd-dns.de
This commit is contained in:
@@ -2382,7 +2382,7 @@ The commands accepted in replication mode are:
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>BASE_BACKUP</literal> [ <literal>LABEL</literal> <replaceable>'label'</replaceable> ] [ <literal>PROGRESS</literal> ] [ <literal>FAST</literal> ] [ <literal>WAL</literal> ] [ <literal>NOWAIT</literal> ] [ <literal>MAX_RATE</literal> <replaceable>rate</replaceable> ] [ <literal>TABLESPACE_MAP</literal> ]
|
||||
<term><literal>BASE_BACKUP</literal> [ <literal>LABEL</literal> <replaceable>'label'</replaceable> ] [ <literal>PROGRESS</literal> ] [ <literal>FAST</literal> ] [ <literal>WAL</literal> ] [ <literal>NOWAIT</literal> ] [ <literal>MAX_RATE</literal> <replaceable>rate</replaceable> ] [ <literal>TABLESPACE_MAP</literal> ] [ <literal>NOVERIFY_CHECKSUMS</literal> ]
|
||||
<indexterm><primary>BASE_BACKUP</primary></indexterm>
|
||||
</term>
|
||||
<listitem>
|
||||
@@ -2481,6 +2481,17 @@ The commands accepted in replication mode are:
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>NOVERIFY_CHECKSUMS</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
By default, checksums are verified during a base backup if they are
|
||||
enabled. Specifying <literal>NOVERIFY_CHECKSUMS</literal> disables
|
||||
this verification.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<para>
|
||||
|
@@ -506,6 +506,22 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-k</option></term>
|
||||
<term><option>--no-verify-checksums</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Disables verification of checksums, if they are enabled on the server
|
||||
the base backup is taken from.
|
||||
</para>
|
||||
<para>
|
||||
By default, checksums are verified and checksum failures will result in
|
||||
a non-zero exit status. However, the base backup will not be removed in
|
||||
this case, as if the <literal>--no-clean</literal> option was used.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-v</option></term>
|
||||
<term><option>--verbose</option></term>
|
||||
|
Reference in New Issue
Block a user