Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAms5-0002Ia-IT for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Oct 2018 02:08:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAms3-0001if-R0 for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Oct 2018 02:08:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAms3-0001iY-G5 for pgsql-hackers@lists.postgresql.org; Fri, 12 Oct 2018 02:08:07 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAms0-0004R3-Us for pgsql-hackers@postgresql.org; Fri, 12 Oct 2018 02:08:06 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 45DD921F0D; Thu, 11 Oct 2018 22:08:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 11 Oct 2018 22:08:04 -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=fm2; bh=MqRufk6Syat2piBOXDJym9wqznQ nLxMWz5WsrdG85bc=; b=T2jQrlTnUKWV3ZT3Cu98EX1n3wBCl8+4lOxtPGTF9H2 pjYGL04NBHkByZMOZO+J+c24FOc4EQN7CKtEosml+Sj4FWOj+a29UHCeuEHwWyus 7zaPHv7b8N6D/5J997e46048LewksAmtuK1ExKlxS/s66ZYDOoQoJA/cVm6Sv0XH S9AmvjPO5GGG95scVw2AvoRzvsOkm4Owzt8suyV5Ucflr+JNsiYF6jH47AiZ3MpM DpPOeR2Zur7RNUPFHb0qeq12hO5uxAJ2mP9HE4BiHwMmMD7RVGsAECaQTG9JFzpk LXFGex4MmmML0i2xru31gSL8+Fx4UOtrF4BVCQPBPXw== 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=MqRufk 6Syat2piBOXDJym9wqznQnLxMWz5WsrdG85bc=; b=iDOEAxyhHygZhmdO79Z3Y6 LAUO38826evkw9senMZWnkbNUaHRYA8Q74BcOBqPD43vSR7dzrVugW37dZUbMYhJ y3moWFUqwDmHkEq4jx1UDgmy6gLp79Wu0cNSGWa8IzKWCnTXxSLCHW+WsmyAQmo3 ZtY8/2zugtNYELWBKkddFgRxtHzq/c486p3L+FCQeuI++VfrywWLFOEkwqkjkNFG 5AUMX6G4oUBvpsZORTNXcemdIcRfrkCsWrV0lfpJr4LaI2F2xsn9f+z/yOF/qlqS edukkKkS0TzMyXR67V9UUttfI++oc6mnpzNcT7Be8/P4sOYVyUc6aVyQyMGEL9XA == 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 51F10102D5; Thu, 11 Oct 2018 22:08:01 -0400 (EDT) Date: Fri, 12 Oct 2018 11:07:58 +0900 From: Michael Paquier To: Andres Freund Cc: Postgres hackers , Daniel Gustafsson , Magnus Hagander Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181012020758.GB30064@paquier.xyz> References: <20181012005614.GC26424@paquier.xyz> <20181012010411.re53cwcistcpip5j@alap3.anarazel.de> <20181012013918.GA30064@paquier.xyz> <20181012015319.ezsb2cxb52ulbqgx@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OBd5C1Lgu00Gd/Tn" Content-Disposition: inline In-Reply-To: <20181012015319.ezsb2cxb52ulbqgx@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --OBd5C1Lgu00Gd/Tn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 11, 2018 at 06:53:19PM -0700, Andres Freund wrote: > On 2018-10-12 10:39:18 +0900, Michael Paquier wrote: >> I have been able to reproduce the problem, and that's a bug within >> pg_verify_checksums as it fails to consider that config_exec_params is >> not a file it should scan when using EXEC_BACKEND. The same can >> happen with config_exec_params.new. >=20 > Ugh, so it's actively borked on windows right now? It looks so. Automated testing proves to be useful sometimes. > Hm. Maybe I'm confused, but how is it correct to use a blacklisting > approach here? It's far from absurd to have files inside a tablespacs > when using temp_tablespace that aren't written through the buffer > manager. Like, uh, temp files, when using temp_tablespaces. pg_verify_checksums assumes that the cluster has been cleanly shut down so temp files are not an issue, no? However... > But even > leaving that aside, there's a few extensions that place additional files > into the tablespace directories (and we don't give them an alternative > solution). This is a good argument. I have not played much with such extensions myself though. > I think at the very least you're going to need to pattern match to > relation looking files.=20 Yes, it seems so. A whitelist approach would consist in checking for relfilenodes, VMs and FSMs as files authorized for scan, in a way rather similar to what looks_like_temp_rel_name() does for temp files... -- Michael --OBd5C1Lgu00Gd/Tn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlvAAf4ACgkQnvQgOdby QH0V6g//Wv+dAgZKyf0RE868UNg2OAS4B0p5ccaP8hKr7SD3CYuU7Z2ZY7EuQNt/ 2GnfnIqCgoK6xR3q1/3hprf2Bn1M96iOGOsycq8UK56qkblA+w2usMTeAuGT7I1X OcdevayJeO4bWtAFaHJv1q7mNyPyJX4iQrBNq8Y0CnUTydwFPnmOVX8LtKg5CbrF 7Ml8i0jGHh1n8SEs6ANMLtNUf81p052q2UzBHqEvBuMIXKhRk4JkP9fGayn87hl/ bTXJ0rIUsupC4qf8RVGisnav8Ep27KnQsTNpf0B11k364eoG/2Zoubb6hyZWhb54 N5HhYDkEZj7NK54euMU6Sj1uw9Apm+qk39imotCZeTyuPLiJaeqgMcwZWGmDGdzg 8UbUuJ61EwYlfbgSr/wXfwNRYraqD0MdR2+FXrAvMpc8PA0Avt39yRYEum/WcIwV 8mBKN3JUHAY7vXj7GPWI/LIIvwRuVkw7xD51LlXg9+Nc4SAH7fcRXcsFLS87JgEl AQXKY3VT4cnKtEdk+/KXqXJMainKEYlXvU5EJTbEGKTVKVyfEq+DHcfD1BqU9Qaj YDkRw1nTwlMfJCXwj79zxkXZt2hWV+lUs/XcJXp1k2aujzw0Z7HJlHdbTFZTm9y8 +Ws+tJh8fLaqGWON1YlumkiqNrXssJ229+SMFJWnOUBsDMr4aoE= =fMOz -----END PGP SIGNATURE----- --OBd5C1Lgu00Gd/Tn--