pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Michael Banck <michael.banck@credativ.de>
Cc: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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: Wed, 28 Nov 2018 06:36:25 +0900
Message-ID: <20181127213625.GM1716@paquier.xyz> (raw)
In-Reply-To: <1543332405.17247.9.camel@credativ.de>
References: <be1a1ae4-ff0b-eff6-99bc-0d5ab8a810c3@2ndQuadrant.com>
	<a8ae6ada-2828-fbdf-5409-6503977035f6@2ndQuadrant.com>
	<11414.1539615900@sss.pgh.pa.us>
	<fda83b85-67f4-e172-c327-19ce0d47d74b@2ndQuadrant.com>
	<20181016220900.GA2331@paquier.xyz>
	<61121849-19c2-ca27-a928-08aacc0f1105@2ndQuadrant.com>
	<20181019135009.GG2099@paquier.xyz>
	<1543324145.17247.6.camel@credativ.de>
	<20181127135221.GG1716@paquier.xyz>
	<1543332405.17247.9.camel@credativ.de>

On Tue, Nov 27, 2018 at 04:26:45PM +0100, Michael Banck wrote:
> Oh, I kinda followed that thread a bit, but I think that patch fixes
> things more by matter of moving code around, at least I haven't noticed
> that tablespaces were explicitly claimed to be fixed in that thread.

That may have been an unconscious move ;)
It seems to me the root issue is that the original implementation of
pg_verify_checksums naively assumed that files can be skipped without
first checking at their types, which I got confused by in d55241af.

You should definitely be mentioned as this reporter anyway, and get
author credits for the additional test.

> As pg_verify_checksums appears to be broken with respect to tablespaces
> in REL_11_STABLE (so I think 11.1, but not 11.0) as well, I think this
> merits a short-term minimal invasive fix (i.e. the patch you posted,
> just that there's no TAP testsuite for pg_verify_checksums in v11
> unfortunately) on its own, regardless of the wider changes proposed in
> the other thread.

Yes, let's do so rather sooner than later if there are no objections
from others.  I am going to ping the other thread about what's discussed
here additionally in case folks missed what you reported.  Fixing the
temp file issue which has been reported by Andres first is an additional
bonus.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (76+ messages)  latest in thread

Message-ID: <20181127213625.GM1716@paquier.xyz>
Permalink:  ../20181127213625.GM1716@paquier.xyz/
Also on:    postgresql.org/message-id/20181127213625.GM1716@paquier.xyz

 · 

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, michael.banck@credativ.de, andrew.dunstan@2ndquadrant.com, tgl@sss.pgh.pa.us, 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: <20181127213625.GM1716@paquier.xyz>
  References: <be1a1ae4-ff0b-eff6-99bc-0d5ab8a810c3@2ndQuadrant.com> <a8ae6ada-2828-fbdf-5409-6503977035f6@2ndQuadrant.com> <11414.1539615900@sss.pgh.pa.us> <fda83b85-67f4-e172-c327-19ce0d47d74b@2ndQuadrant.com> <20181016220900.GA2331@paquier.xyz> <61121849-19c2-ca27-a928-08aacc0f1105@2ndQuadrant.com> <20181019135009.GG2099@paquier.xyz> <1543324145.17247.6.camel@credativ.de> <20181127135221.GG1716@paquier.xyz> <1543332405.17247.9.camel@credativ.de> <20181127213625.GM1716@paquier.xyz>

* 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