From: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Michael Banck <michael.banck@credativ.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, 19 Oct 2018 20:50:04 -0700
Message-ID: <20181020035004.7brmu7pkajlbdsp5@alap3.anarazel.de> (raw)
In-Reply-To: <20181020033955.GA2553@paquier.xyz>
References: <20181019184751.GP4184@tamriel.snowman.net>
<20181019192146.j4my7yjzv4eitw2w@alap3.anarazel.de>
<20181019195728.GQ4184@tamriel.snowman.net>
<20181019200723.4byzaw5km5jvsxlc@alap3.anarazel.de>
<20181019203546.GR4184@tamriel.snowman.net>
<20181019205724.ewnuhvrsanacihzq@alap3.anarazel.de>
<20181019213257.GS4184@tamriel.snowman.net>
<d38afe14-dc13-1e94-7adf-449c330a6fcb@2ndQuadrant.com>
<16306.1539988998@sss.pgh.pa.us>
<20181020033955.GA2553@paquier.xyz>
Hi,
On 2018-10-20 12:39:55 +0900, Michael Paquier wrote:
> - I agree with Stephen's point that we should decide if a file has
> checksums or not in a single place, and that we should use the same
> logic for base backups and pg_verify_checksums.
To be clear, I wholeheartedly agree on that. We probably only want to
tackle that for "is checksummable file" in a backpatchable fashion, but
we probably should move to having more common infrastructure like that.
> So what I think we ought to do is the following:
> - Start a new thread, this one about TAP tests is not adapted.
> - Add in src/common/relpath.c the API from d55241af called
> isRelFileName(), make use of it in the base backup code, and basically
> remove is_checksummed_file() and the checksum skip list.
I think it probably shouldn't quite be that as an API. The code should
not just check whether the file matches a pattern, but also importantly
needs to exclude files that are in a temp tablespace. isRelFileName()
doesn't quite describe an API meaning that. I assume we should keep
something like isRelFileName() but use an API ontop of that that also
exclude temp files / relations.
Greetings,
Andres Freund
Date: Fri, 19 Oct 2018 20:48:02 -0700
Message-ID: <87in1xmg7h.fsf@alap4.lan>
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: andres@anarazel.de, michael@paquier.xyz, tgl@sss.pgh.pa.us, andrew.dunstan@2ndquadrant.com, sfrost@snowman.net, michael.banck@credativ.de, pgsql-hackers@postgresql.org, daniel@yesql.se, magnus@hagander.net
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
In-Reply-To: <20181020035004.7brmu7pkajlbdsp5@alap3.anarazel.de>
References: <20181019184751.GP4184@tamriel.snowman.net> <20181019192146.j4my7yjzv4eitw2w@alap3.anarazel.de> <20181019195728.GQ4184@tamriel.snowman.net> <20181019200723.4byzaw5km5jvsxlc@alap3.anarazel.de> <20181019203546.GR4184@tamriel.snowman.net> <20181019205724.ewnuhvrsanacihzq@alap3.anarazel.de> <20181019213257.GS4184@tamriel.snowman.net> <d38afe14-dc13-1e94-7adf-449c330a6fcb@2ndQuadrant.com> <16306.1539988998@sss.pgh.pa.us> <20181020033955.GA2553@paquier.xyz> <20181020035004.7brmu7pkajlbdsp5@alap3.anarazel.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