Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRl24-0006iO-V0 for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Nov 2018 21:36:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRl23-0000b3-Lu for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Nov 2018 21:36:35 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRl23-0000aw-EQ for pgsql-hackers@lists.postgresql.org; Tue, 27 Nov 2018 21:36:35 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRl21-0001mI-CK for pgsql-hackers@postgresql.org; Tue, 27 Nov 2018 21:36:35 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 066AB21F75; Tue, 27 Nov 2018 16:36:32 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 27 Nov 2018 16:36:32 -0500 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=av5oJVW1CNfbZ7fjeg7yFpnUtEj 5p8CtcAzpiKi/IDM=; b=IB+8rU01TYFKc1F9zGQezYytV+/JbYSI9BupXthMFOo MAKu0D1bX6kVJd4jG6vY6va528o968gXQV7OMe9m7WB1uBCYyPGcu+GuD0cNdZMy aJ6Ztd/s3mFlddOEdvXKeYMjRI7lojC0RkyP6m+iGufEn35/a3vudE+0raF6bGgW UCglzazhY6dUnfzBMhFhm/1P4VbyunigQngd3vF/i+8toFDGoXsAHmsroDR4KxNt b5WhIpjafE7qChxHUj+FdLnEb0MNp6eJeX9xn49UXvMzdvam0ay7WaacZs7E/v4/ m6FDbDtzVvYgtOAaWJMYVs9hZL5P3K/Xi+ZkUXLjHFQ== 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=av5oJV W1CNfbZ7fjeg7yFpnUtEj5p8CtcAzpiKi/IDM=; b=VMrNn71J76w00blYWCLUIa G8+7VTeXu+8pXiM1IqzZsaehZwGhxugc//C70lAQcymbB/+rn3dU+YdaN5gYIwqX WsLhZ+MK2R20k3eLVO0hCH2nS0rOx05Rh5s01BNSOz3PiK4gYQ7F6L7Fcpjvl2BA fnxrsMI4KuK8tHprV1+eLc+HkgyHlGkdLHiHpPWoCQzKFiIklASwDs1iT/F/mU+L /48Nxfh7lftYl3B+Hk2QIYd0TfkaZ6eYxF8zcMeHxL6itngvS7/wOJhtmAEwYPTe fyafdFaYtPSh3OsuShaRGxKzYhZen2DeyPVJ4O5MqO7sgqzL2u2Y8IREPIuM3P7A == 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 24552E407B; Tue, 27 Nov 2018 16:36:27 -0500 (EST) Date: Wed, 28 Nov 2018 06:36:25 +0900 From: Michael Paquier To: Michael Banck Cc: Andrew Dunstan , Tom Lane , Andres Freund , Postgres hackers , Daniel Gustafsson , Magnus Hagander Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181127213625.GM1716@paquier.xyz> References: <11414.1539615900@sss.pgh.pa.us> <20181016220900.GA2331@paquier.xyz> <61121849-19c2-ca27-a928-08aacc0f1105@2ndQuadrant.com> <20181019135009.GG2099@paquier.xyz> <1543324145.17247.6.camel@credativ.de> <20181127135221.GG1716@paquier.xyz> <1543332405.17247.9.camel@credativ.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3wfpuDtTLg8/Vq6g" Content-Disposition: inline In-Reply-To: <1543332405.17247.9.camel@credativ.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --3wfpuDtTLg8/Vq6g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 27, 2018 at 04:26:45PM +0100, Michael Banck wrote: > Oh, I kinda followed that thread a bit, but I think that patch fixes > things more by matter of moving code around, at least I haven't noticed > that tablespaces were explicitly claimed to be fixed in that thread. That may have been an unconscious move ;) It seems to me the root issue is that the original implementation of pg_verify_checksums naively assumed that files can be skipped without first checking at their types, which I got confused by in d55241af. You should definitely be mentioned as this reporter anyway, and get author credits for the additional test. > As pg_verify_checksums appears to be broken with respect to tablespaces > in REL_11_STABLE (so I think 11.1, but not 11.0) as well, I think this > merits a short-term minimal invasive fix (i.e. the patch you posted, > just that there's no TAP testsuite for pg_verify_checksums in v11 > unfortunately) on its own, regardless of the wider changes proposed in > the other thread. Yes, let's do so rather sooner than later if there are no objections =66rom others. I am going to ping the other thread about what's discussed here additionally in case folks missed what you reported. Fixing the temp file issue which has been reported by Andres first is an additional bonus. -- Michael --3wfpuDtTLg8/Vq6g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlv9uNkACgkQnvQgOdby QH0NIA/+Om0Ln8F8VHTShC+zQvEWJANFEhqS5kGyMiQ6KcmokKE9rybqHqeT3+G2 2CjSsvXX77xevMMWjoBbV/7z3tciLd1FKrDVXNmTaoVgzIOxHaA7cG5Z+Gdw+oLv lhbUlLSdsdvFl1l/rfhPxa9STVyxRg8hvocEfLP/L2cPQRrEMVGHZIUK5W9Eo+Gq +jouMZBVQo/YhrxVs94tg0NSoYmrcafrTE36D8ISNALO+rADqb4KusukUtbDDoE0 paPm/DgJWGNLGo9/9GQ6V9kB3mS/S/TiY/vod707WYOtuggVcIzU+TZoy7zGhin/ Ka0dFl8++0m2BnS4qHejRY6TmLcyROTa77O9Rhu4t7A9gD2FLhlzX4fUvfLyl6ab Ir1K3XBNkylOk7rL1SRtebpPBAtiYwLsXcYy+Yh4rascpRXZKdyVabjU/2nVz1eb 2tcPinIg4AcrbAu05owumYh52F/qZm1dwwlyACFJb8FhuSPyNrxyF2ZA8ZxrEoJB gDHQyX42GMyH+bVplW3rG4QtqRy30KhzXtcY08KTXdU4kANCwELCUFSjaONZ3w11 s+21Z5JMhKMSD0/NIxb3pRZAkk/z+HG0Ivc7BdmqEsX+VQqPwKqjYVFqSclmj4AJ mSt8kdgzKuAEQsDz6i+63Q1tA1LO/TTfGZQn6m7c77KUKcsx6fQ= =TKbj -----END PGP SIGNATURE----- --3wfpuDtTLg8/Vq6g--