From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a
Date: Mon, 24 Feb 2020 09:15:17 +0000
Message-ID: <E1j69pd-0007mK-86@gemulon.postgresql.org> (raw)
Add prefix checks in exclude lists for pg_rewind, pg_checksums and base backups
An instance of PostgreSQL crashing with a bad timing could leave behind
temporary pg_internal.init files, potentially causing failures when
verifying checksums. As the same exclusion lists are used between
pg_rewind, pg_checksums and basebackup.c, all those tools are extended
with prefix checks to keep everything in sync, with dedicated checks
added for pg_internal.init.
Backpatch down to 11, where pg_checksums (pg_verify_checksums in 11) and
checksum verification for base backups have been introduced.
Reported-by: Michael Banck
Author: Michael Paquier
Reviewed-by: Kyotaro Horiguchi, David Steele
Discussion: https://postgr.es/m/62031974fd8e941dd8351fbc8c7eff60d59c5338.camel@credativ.de
Backpatch-through: 11
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a8beece956ebf0659e64e229519f6e87b13b8b3a
Modified Files
--------------
src/backend/replication/basebackup.c | 75 ++++++++++++++++++----------
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 8 +--
src/bin/pg_checksums/pg_checksums.c | 39 +++++++++++----
src/bin/pg_checksums/t/002_actions.pl | 4 +-
src/bin/pg_rewind/filemap.c | 43 +++++++++++-----
5 files changed, 116 insertions(+), 53 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a
In-Reply-To: <E1j69pd-0007mK-86@gemulon.postgresql.org>
References: <E1j69pd-0007mK-86@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox