pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: 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 11:07:58 +0900
Message-ID: <20181012020758.GB30064@paquier.xyz> (raw)
In-Reply-To: <20181012015319.ezsb2cxb52ulbqgx@alap3.anarazel.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>

On Thu, Oct 11, 2018 at 06:53:19PM -0700, Andres Freund wrote:
> On 2018-10-12 10:39:18 +0900, Michael Paquier wrote:
>> I have been able to reproduce the problem, and that's a bug within
>> pg_verify_checksums as it fails to consider that config_exec_params is
>> not a file it should scan when using EXEC_BACKEND.  The same can
>> happen with config_exec_params.new.
> 
> Ugh, so it's actively borked on windows right now?

It looks so.  Automated testing proves to be useful sometimes.

> Hm. Maybe I'm confused, but how is it correct to use a blacklisting
> approach here? It's far from absurd to have files inside a tablespacs
> when using temp_tablespace that aren't written through the buffer
> manager.  Like, uh, temp files, when using temp_tablespaces.

pg_verify_checksums assumes that the cluster has been cleanly shut
down so temp files are not an issue, no?  However...

> But even
> leaving that aside, there's a few extensions that place additional files
> into the tablespace directories (and we don't give them an alternative
> solution).

This is a good argument.  I have not played much with such extensions
myself though.

> I think at the very least you're going to need to pattern match to
> relation looking files. 

Yes, it seems so.  A whitelist approach would consist in checking for
relfilenodes, VMs and FSMs as files authorized for scan, in a way rather
similar to what looks_like_temp_rel_name() does for temp files...
--
Michael

Attachments:

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

view thread (76+ messages)  latest in thread

Message-ID: <20181012020758.GB30064@paquier.xyz>
Permalink:  ../20181012020758.GB30064@paquier.xyz/
Also on:    postgresql.org/message-id/20181012020758.GB30064@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, 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: <20181012020758.GB30064@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>

* 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