From: Andres Freund <andres@anarazel.de>
To: Stephen Frost <sfrost@snowman.net>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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 10:17:47 -0700
Message-ID: <20181019171747.4uithw2sjkt6msne@alap3.anarazel.de> (raw)
In-Reply-To: <20181019143659.GJ4184@tamriel.snowman.net>
References: <d986613b-992c-2400-78d8-08e21dff337c@2ndQuadrant.com>
<20181014224138.GA15473@paquier.xyz>
<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>
<20181019143659.GJ4184@tamriel.snowman.net>
Hi,
On 2018-10-19 10:36:59 -0400, Stephen Frost wrote:
> * Michael Paquier (michael@paquier.xyz) wrote:
> > On Wed, Oct 17, 2018 at 05:30:05PM -0400, Andrew Dunstan wrote:
> > > Fine by me.
> >
> > Thanks. This is now committed after some tweaks to the comments, a bit
> > earlier than I thought first.
>
> I just saw this committed and I'm trying to figure out why we are
> creating yet-another-list when it comes to deciding what should be
> checksum'd and what shouldn't be.
I'm not sure it's fair to blame Michael here. He's picking up slack,
because the original authors of the tool didn't even bother to reply to
the issue for quite a while. pg_verify_checksum was obviously never
tested on windows, it just didn't have tests showing that.
> I also categorically disagree with the notion that it's ok for
> extensions to dump files into our tablespace diretories or that we
> should try to work around random code dumping extra files in the
> directories which we maintain- it's not like this additional code will
> actually protect us from that, after all, and it's foolish to think we
> really could protect against that.
I'm unconvinced. There already are extensions doing so, and it's not
like we've given them any sort of reasonable alternative. You can't just
create relations in a "registered" / "supported" kinda way right now, so
uh, yea, extension gotta make do. And that has worked for many years.
Also, as made obvious here, it's pretty clear that there's platform
differences about which files exists and which don't, so it's not that a
blacklist approach automatically is more maintainable.
And I fail to see why a blacklist is architecturally better. There's
plenty cases where we might want to create temporary files,
non-checksummed data or such that we'd need a teach a blacklist about,
but there's far fewer cases where add new checksummed files. Basically
never since checksums have been introduced. And if checksums were
introduced for something new, say slrus, we'd ceertainly use
pg_verify_checksum during development.
Greetings,
Andres Freund
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, sfrost@snowman.net, michael@paquier.xyz, andrew.dunstan@2ndquadrant.com, tgl@sss.pgh.pa.us, 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: <20181019171747.4uithw2sjkt6msne@alap3.anarazel.de>
References: <d986613b-992c-2400-78d8-08e21dff337c@2ndQuadrant.com> <20181014224138.GA15473@paquier.xyz> <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> <20181019143659.GJ4184@tamriel.snowman.net> <20181019171747.4uithw2sjkt6msne@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