From: Michael Banck <michael.banck@credativ.de>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Magnus Hagander <magnus@hagander.net>
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
Date: Fri, 12 Oct 2018 12:14:48 +0200
Message-ID: <20181012101447.GA13287@nighthawk.caipicrew.dd-dns.de> (raw)
In-Reply-To: <20181012060543.GE30064@paquier.xyz>
References: <E1gAl9R-00015q-Nl@gemulon.postgresql.org>
<20181012005614.GC26424@paquier.xyz>
<20181012010411.re53cwcistcpip5j@alap3.anarazel.de>
<20181012013918.GA30064@paquier.xyz>
<20181012015319.ezsb2cxb52ulbqgx@alap3.anarazel.de>
<20181012020758.GB30064@paquier.xyz>
<20181012024118.q3jwio7gf52nsrmm@alap3.anarazel.de>
<20181012031158.GD30064@paquier.xyz>
<20181012060543.GE30064@paquier.xyz>
Hi,
On Fri, Oct 12, 2018 at 03:05:43PM +0900, Michael Paquier wrote:
> On Fri, Oct 12, 2018 at 12:11:58PM +0900, Michael Paquier wrote:
> > Agreed. I am just working on a patch for v11- which uses a
> > whitelist-based method instead of what is present now. Reverting the
> > tests to put the buildfarm to green could be done, but that's not the
> > root of the problem.
I think that's the right solution; the online verification patch adds
even more logic to the blacklist so getting rid of it in favor of a
whitelist is +1 with me.
> So, I have coded this thing, and finish with the attached. The
> following file patterns are accepted for the checksums:
> <digits>.<segment>
> <digits>_<forkname>
> <digits>_<forkname>.<segment>
> I have added some tests on the way to make sure that all the patterns
> get covered. Please note that this skips the temporary files.
Maybe also add some correct (to be scanned) but non-empty garbage files
later on that it should barf on?
Michael
--
Michael Banck
Projektleiter / Senior Berater
Tel.: +49 2166 9901-171
Fax: +49 2166 9901-100
Email: michael.banck@credativ.de
credativ GmbH, HRB Mönchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer
Unser Umgang mit personenbezogenen Daten unterliegt
folgenden Bestimmungen: https://www.credativ.de/datenschutz
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.banck@credativ.de, michael@paquier.xyz, andres@anarazel.de, pgsql-hackers@postgresql.org, daniel@yesql.se, magnus@hagander.net
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
In-Reply-To: <20181012101447.GA13287@nighthawk.caipicrew.dd-dns.de>
References: <E1gAl9R-00015q-Nl@gemulon.postgresql.org> <20181012005614.GC26424@paquier.xyz> <20181012010411.re53cwcistcpip5j@alap3.anarazel.de> <20181012013918.GA30064@paquier.xyz> <20181012015319.ezsb2cxb52ulbqgx@alap3.anarazel.de> <20181012020758.GB30064@paquier.xyz> <20181012024118.q3jwio7gf52nsrmm@alap3.anarazel.de> <20181012031158.GD30064@paquier.xyz> <20181012060543.GE30064@paquier.xyz> <20181012101447.GA13287@nighthawk.caipicrew.dd-dns.de>
* 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