pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add TAP tests for pg_verify_checksums
Date: Fri, 12 Oct 2018 00:17:57 +0000
Message-ID: <E1gAl9R-00015q-Nl@gemulon.postgresql.org> (raw)

Add TAP tests for pg_verify_checksums

All options available in the utility get coverage:
- Tests with disabled page checksums.
- Tests with enabled test checksums.
- Emulation of corruption and broken checksums with a full scan and
single relfilenode scan.

This patch has been contributed mainly by Michael Banck and Magnus
Hagander with things presented on various threads, and I have gathered
all the contents into a single patch.

Author: Michael Banck, Magnus Hagander, Michael Paquier
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/20181005012645.GE1629@paquier.xyz

Branch
------
master

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

Modified Files
--------------
src/bin/initdb/t/001_initdb.pl               | 14 +++++-
src/bin/pg_verify_checksums/.gitignore       |  2 +
src/bin/pg_verify_checksums/Makefile         |  6 +++
src/bin/pg_verify_checksums/t/001_basic.pl   |  8 ++++
src/bin/pg_verify_checksums/t/002_actions.pl | 69 ++++++++++++++++++++++++++++
5 files changed, 98 insertions(+), 1 deletion(-)



view thread (76+ messages)  latest in thread

Message-ID: <E1gAl9R-00015q-Nl@gemulon.postgresql.org>
Permalink:  ../E1gAl9R-00015q-Nl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gAl9R-00015q-Nl@gemulon.postgresql.org

 · 

reply

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 TAP tests for pg_verify_checksums
  In-Reply-To: <E1gAl9R-00015q-Nl@gemulon.postgresql.org>
  References: <E1gAl9R-00015q-Nl@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