pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
To: Michael Banck <michael.banck@credativ.de>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Cc: Magnus Hagander <magnus@hagander.net>
Subject: Re: TAP tests for pg_verify_checksums
Date: Tue, 9 Oct 2018 16:54:44 +0200
Message-ID: <e06ba1f8-e16c-0bbe-4586-ac6c873d1716@2ndquadrant.com> (raw)
In-Reply-To: <20181006114648.GA1642@paquier.xyz>
References: <20181005012645.GE1629@paquier.xyz>
	<20181005113805.GB20017@nighthawk.caipicrew.dd-dns.de>
	<20181006114648.GA1642@paquier.xyz>

On 06/10/2018 13:46, Michael Paquier wrote:
> On Fri, Oct 05, 2018 at 01:38:05PM +0200, Michael Banck wrote:
>> It's too late for v11 though at this point I guess?
> 
> Unfortunately yes.
> 
>> I think it would be easy to also test the -r command-line option, as we
>> already create a table.
> 
> Good idea.  Let's add this test.
> 
>> That comment should read 'that checksums are enabled', right?
> 
> Indeed.  Fixed.
> 
>> Otherwise, LGTM and I've tested it without finding any problems.
> 
> What do you think about the updated version attached?

Looks pretty good to me.

Let's make sure the test names are useful:

+# Checks cannot happen for an online cluster
+$node->start;
+command_fails(['pg_verify_checksums',  '-D', $pgdata],
+			  "checksum checks not done");

The test name should be something like "fails with online cluster".

I would also like to see a test that runs against a cluster without
checksums enabled.

Other than that, it appears to cover everything.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (7+ messages)  latest in thread

Message-ID: <e06ba1f8-e16c-0bbe-4586-ac6c873d1716@2ndquadrant.com>
Permalink:  ../e06ba1f8-e16c-0bbe-4586-ac6c873d1716@2ndquadrant.com/
Also on:    postgresql.org/message-id/e06ba1f8-e16c-0bbe-4586-ac6c873d1716@2ndquadrant.com

 · 

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-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, michael@paquier.xyz, michael.banck@credativ.de, magnus@hagander.net
  Subject: Re: TAP tests for pg_verify_checksums
  In-Reply-To: <e06ba1f8-e16c-0bbe-4586-ac6c873d1716@2ndquadrant.com>
  References: <20181005012645.GE1629@paquier.xyz> <20181005113805.GB20017@nighthawk.caipicrew.dd-dns.de> <20181006114648.GA1642@paquier.xyz> <e06ba1f8-e16c-0bbe-4586-ac6c873d1716@2ndquadrant.com>

* 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