pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a
3+ messages / 1 participants
[nested] [flat]

* pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a
@ 2020-02-24 09:15  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2020-02-24 09:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bf883b211eae18662f2dfaede02f5d115bf0b805

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a
@ 2020-02-24 09:15  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2020-02-24 09:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/da2a7180aa0ed18d4e283a934d3f789912fd99c5

Modified Files
--------------
src/backend/replication/basebackup.c              | 75 +++++++++++++++--------
src/bin/pg_basebackup/t/010_pg_basebackup.pl      |  8 +--
src/bin/pg_rewind/filemap.c                       | 43 +++++++++----
src/bin/pg_verify_checksums/pg_verify_checksums.c | 39 ++++++++----
4 files changed, 113 insertions(+), 52 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a
@ 2020-02-24 09:15  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2020-02-24 09:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-02-24 09:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-02-24 09:15 pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a Michael Paquier <michael@paquier.xyz>
2020-02-24 09:15 pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a Michael Paquier <michael@paquier.xyz>
2020-02-24 09:15 pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a Michael Paquier <michael@paquier.xyz>

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