Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDcaT-0007Qa-CQ for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Oct 2018 21:45:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDcaR-0000J2-Fy for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Oct 2018 21:45:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDcaR-0000IU-0J for pgsql-hackers@lists.postgresql.org; Fri, 19 Oct 2018 21:45:39 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDcaN-0001MX-O3 for pgsql-hackers@postgresql.org; Fri, 19 Oct 2018 21:45:37 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 255055F79C; Fri, 19 Oct 2018 17:45:35 -0400 (EDT) Date: Fri, 19 Oct 2018 17:45:35 -0400 From: Stephen Frost To: Andres Freund Cc: Michael Paquier , Andrew Dunstan , Tom Lane , Michael Banck , Postgres hackers , Daniel Gustafsson , Magnus Hagander Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181019214534.GT4184@tamriel.snowman.net> References: <20181019181103.GO4184@tamriel.snowman.net> <20181019183050.6fgqc5ugnavfzae4@alap3.anarazel.de> <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> <20181019213905.5c6fh3k3koumuu33@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l+SBsUBHths57q4t" Content-Disposition: inline In-Reply-To: <20181019213905.5c6fh3k3koumuu33@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --l+SBsUBHths57q4t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Andres Freund (andres@anarazel.de) wrote: > On 2018-10-19 17:32:58 -0400, Stephen Frost wrote: > > As you pointed out previously, the current code *doesn't* work, before > > or after this change, and we clearly need to rework this to move things > > into libpgcommon and also fix pg_basebackup. Reverting this would at > > least get us back to having similar code between this and pg_basebackup, > > and then it'll be cleaner and clearer to have one patch which moves that > > similar logic into libpgcommon and fixes the missing exceptions for the > > EXEC_BACKEND case. > >=20 > > Keeping the patch doesn't do anything for the pg_basebackup case, and > > confuses the issue by having these filename-pattern-whitelists which > > weren't there before and that should be removed, imv. >=20 > The current state has pg_verify_checksum work on windows for casual > usage, which includes the regression tests that previously were broken. > Whereas reverting it has the advantage that a fixup diff would be a few > lines smaller. If you want to push a revert together with a fix, be my > guest, but until that time it seems unhelpful to revert. Clearly, pg_basebackup *doesn't* work though, so it's at best only half a fix and only because our regression tests don't cover the pg_basebackup case (which is a sad state of affairs, to say the least, but an independent issue). I'm not in any specific rush on this and I hope to hear Michael's thoughts once he's had a chance to review our discussion; it's his commit, after all. Michael's initial patch is in the archives also, so my suggestion would be to revert this one and then take Michael's prior patch and add to it the fix of pg_basebackup, in the same manner, and commit those changes together with additional comments to note that the code exists in both places. We could then work on moving the logic into libpgcommon, in master. Thanks! Stephen --l+SBsUBHths57q4t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJbylB+AAoJEO1sijiDR2RV944QAIIq1ZRaQ0mvjwJ79pfPsYtG 7j5yWAo12SKeJ7ayMgrNtuUG/eIrRi50vtGPB7MYB13M9zzZokKYWuD5iIKdLFwM eUNJSRDKUqnBX2VYl/3LAJyjAPme/6qTuMRPtpvVe4Dj0q90XB6b4t9noWidzWbw nzpDhPl0DaqMxbFL7C9RwH0y+95NCYBmF7leOoxiTDsf6rotsqcJGsiNzT8bAtCF f09Np5kAz4TqxUFrNKLfJKYqXNHtkRK59E/tks6AdxsoSDiVkWcamufpICwyiDnT A7hSTzskvR8W326s6sq4xzEu4cXG9wmTwhxZMr3EgZKXWQZfDOVi2H3NKd2Iugi/ +l3LyHB0MXJPbEhG9o4mpbd34vzAsDQwcGhxl2EqbynaUFLsURZie6XA4N4Yu9uN Yq3b73A+PIlGnUDHqsYaThyaB4N45hwExS/zThrmMvJxNM+8iIIkNA1OhNe3aLS2 R/5VN712yr5rhQLfWKZH1krNsiX9SWtYLxGfNUN1MovESejbWc7sBrmqaxtktPms XeUDuxvhQYEXbGwYVzGWmSFD50ou8Ay2akWCavnF7fdRa9hYTWRlt/DCqWPP/bFC tBKEKsqZU0MXxuiV6ZDZFFj1MNlfJjUaRIq3Nm5w6WgfY8TTVB8Bg7JqP5/tSU/N jL0dWpA/6wBonJv86ncN =CJ6j -----END PGP SIGNATURE----- --l+SBsUBHths57q4t--