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 1gDi7i-00072J-6S for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Oct 2018 03:40:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDi7e-0001UG-SP for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Oct 2018 03:40:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDi7d-0001Tj-3Q for pgsql-hackers@lists.postgresql.org; Sat, 20 Oct 2018 03:40:18 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDi7S-0000xB-60 for pgsql-hackers@postgresql.org; Sat, 20 Oct 2018 03:40:16 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4BAB322150; Fri, 19 Oct 2018 23:40:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 19 Oct 2018 23:40:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=+fVmayL2WHy/Ip2QKGY4XvUkXfE oPPvrE08VhI4hlVg=; b=eRnSgQhBH4G6lmICkuL2/PLMXuLjAw9YSemCsTdoSPd SahBX1K0symy6TZ9qFwk73WLZJq32Fr6C5QXKh5MIGDzxVkl+Xv+hUw5nAK4fO43 DI+1nuK5iFT9DEkuJ9aCBvPECpChUgZdKA/kPY34i7efUL0t3C20nff84hHgojYW oies5O2m505CLewSX9omrVi86b+cj7cup49qMjNq+cGZlbPW0GLc5A42o0KxhjSR Bi5h3LMwUaXAefqh+T3eC1GTi0m/PiA5yzianCX8l+AsYQu/1s8fiDGwHwVPd68H 1RlOKLD+vrDhYf3YpV5JoeK950jKrrkL0aVomzMxW9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=+fVmay L2WHy/Ip2QKGY4XvUkXfEoPPvrE08VhI4hlVg=; b=sSFQUT+EjP47aYs5pmRfNH nUuYcaeCqlcVRdeBg67iYbDfphZFwTlQAdpOYS4pySZaNxl0vdQhDmHi8P55Nq1g emWCKFBaIoqNBYxNbHpcB9hOslfKA0gjTjIPXIk7FQP5uSoryS1dcRNpccw9FEoE hrUMPVSDY5R25X8+IruJdsUDfGvXC+tvg2w8FEBNDwRbwbrZWQtg2SBLan4nY93p m4qjVOU8gcS+VNAPIi3XRpI9fOby3zCr6+xyUIUtR1Xh0zltU/atmWxIT+LgOQ/j NOoDJ1wb1Euehjr6tMqgrV6IY/w5vb9e7TG/akkQpeAG+R0SLtFvupy7U14Pf/0w == X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 732AD102E0; Fri, 19 Oct 2018 23:39:58 -0400 (EDT) Date: Sat, 20 Oct 2018 12:39:55 +0900 From: Michael Paquier To: Tom Lane Cc: Andrew Dunstan , Stephen Frost , Andres Freund , Michael Banck , Postgres hackers , Daniel Gustafsson , Magnus Hagander Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181020033955.GA2553@paquier.xyz> References: <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> <16306.1539988998@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <16306.1539988998@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 19, 2018 at 06:43:18PM -0400, Tom Lane wrote: > Andrew Dunstan writes: >> I don't think just reverting it is really acceptable. >=20 > +several. I do not mind somebody writing and installing a better fix. > I do object to turning the buildfarm red again. I did not expect this thread to turn into a war zone. Anyway, there are a couple of things I agree with on this thread: - I agree with Andres point here: https://postgr.es/m/20181019171747.4uithw2sjkt6msne@alap3.anarazel.de A blacklist is fundamentally more difficult to maintain as there are way more things added in a data folder which do not have data checksums than things which have checksums. So using a blacklist approach looks unmaintainable in the long term. Future patches related to enabling online checksum verification make me worry if we keep the code like that. I can also easily imagine that anybody willing to use the pluggable storage API would like to put new files in tablespace-related data folders, relying on "base/" being the default system tablespace - 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. - I agree with not doing a simple revert to not turn the buildfarm red again. This is annoying for animal maintainers. Andrew has done a very nice work in disabling manually those tests temporarily. - The base backup logic deciding if a file has checksums looks broken to me: it misses files generated by EXEC_BACKEND, and any instance of Postgres using an extension with custom files and data checksums has its backups broken. cstore_fdw has been mentioned above, and I recall that Heroku for example enables data checksums. If you combine both, it basically means that such an instance cannot take base backups anymore while it was able to do so with pre-10 with default options. That's not cool. 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. -- Michael --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlvKo4sACgkQnvQgOdby QH1HaA/8Cy2vofhHVnJMqQ8sAhiHmyvaGU8MbXhirxj9VOEe1m26rxq6N9Q43FVf Pd7rt2G1XGG5vJTVA9vjS8C2qMvrZPWRAebY1uNYwVDAg6NRm3FIzb6Gyxjhry2v 1tQcilKX9ozS78H+q65NcFsVywWkjYDA4LycrSJtbHeOlInojUPWYOQ6PMS9cEUG MHSdyGkHBQfk7hwPaPGldBWRh8qPFY7SW2WXcRPMKA5c9aaTRthbZfkIemSSOa9l nxpmacnrjXrm+T3kFp5jfjqDwdkQOqMTjoBTy4LoTeuJsL1d1vH+Egg/Jwy33jjM 9S44vDknu86Ky6yYYJHw8rmBRbM1TUJFjJmF9/TxWXCy5I6Y97oWf88Tq4PiGKMk NlLdbrV1ZjhvSh08ibdh/RFcw3xG0JzC6QSIVBNs403UUzRqOm3wddIon3v85EBg ORCOZyagAG69W8hlUTlp3Kgj3ZNWBM5r5z6HPKHB+F28KR0DxBox7Houz+NxxTKu 35vvifAfuwF94mhNfPh9Pg7Z7YlPQBK/qJK99x0TExjmJY9u+WB1FjYaYGaOewqZ 4FpMcKjDSiIcwxAR96SRufITBJQWawC7BUwJ0XAySc29FKgmOzroiPbJql5tioHo 77N8/t8FH+/jDVACpIU1V5MORAF8fHcKtXGW9Xd/HtohnbpHN70= =Tmfo -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--