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 1gAmdr-0001fm-Vw for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Oct 2018 01:53:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAmdq-0006pf-9g for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Oct 2018 01:53:26 +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 1gAmdq-0006pY-2W for pgsql-hackers@lists.postgresql.org; Fri, 12 Oct 2018 01:53:26 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAmdo-0006fm-0f for pgsql-hackers@postgresql.org; Fri, 12 Oct 2018 01:53:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9E299966; Thu, 11 Oct 2018 21:53:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 11 Oct 2018 21:53:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=mS/F2+CrosPhBSwJWInavLr4rXf jhTF+K+fwV2hnHuU=; b=xzEPdSFQ0xlSLLktqF/QUYkGOz92ojBscjdg3lK40La QSUDtAXZqxVnS2G4Sf87SxLgNsRdgpJikY6a7dD4JGW4Ngg6rXNoaO3SSHsd8lVy 6hkeu4ZOC2INT95PU+iSXiWmsE8nm0jz8FAS1PVx3a1xiffRzkLoNuXwp3K9s8q/ u1S+Nt4z4VU21UEjkzZ3Qj7BUjyUa6h21sT7Ml6xBbn9/QuCzrD4Eydpl4b4p1W0 YLJ4OJxu7az40nC4Q/FeFoowoSL4kKSZaoEu5KyAIhH/TD3i3QjYr5EDWxwR8O4Q eixBPRQxNvVPKORuTt3817hgvxvbFLaEUSsc6cCKFqA== 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=mS/F2+ CrosPhBSwJWInavLr4rXfjhTF+K+fwV2hnHuU=; b=hnG96vE2t69DFNLjyt+pow a20l8CHmXIUgor96UNl0UBFBeCGRJXIrf+FXjYkKVxzV0pIOO9DR3kxzTebmPvsH dut5PThi88S3WUi+bMCjoqaGtOrOwW73/w0424P7E+vsWJWP/2oxt0HKjGyjzFXG qkmHNPXYWgPeEdHwDUyQ5qYbSyJITIx5K24ofT0bF637R3SBmtc5JbeX4hqCqeK1 6D4dHrWAXcsyOr2FNHGXEvvTPL6l/hoaFMOs6sgz3YVNLfxPMFteg6JLVe4xx070 /hIxY7YF6IkY472pE4GP1UfwjlIVnCkfIUfYFSE2HZbLEUsD8DqSq/PlUVgJyNhw == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 07A06102DE; Thu, 11 Oct 2018 21:53:20 -0400 (EDT) Date: Thu, 11 Oct 2018 18:53:19 -0700 From: Andres Freund To: Michael Paquier Cc: Postgres hackers , Daniel Gustafsson , Magnus Hagander Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181012015319.ezsb2cxb52ulbqgx@alap3.anarazel.de> References: <20181012005614.GC26424@paquier.xyz> <20181012010411.re53cwcistcpip5j@alap3.anarazel.de> <20181012013918.GA30064@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181012013918.GA30064@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-10-12 10:39:18 +0900, Michael Paquier wrote: > On Thu, Oct 11, 2018 at 06:04:11PM -0700, Andres Freund wrote: > > culicidae tests EXEC_BACKEND, so there's an explanation as to why it > > sometimes behaves differently. But here I don't immediately see how > > that'd matter. Probably still worth verifying that it's not somehow > > caused by that. > > Thanks, that's the point of detail I needed about culicidae Note that that's also mentioned on the BF page when you hover over the yellow stick-it symbol. > (you will need to explain me one day face-to-face how you pronounce > it). I didn't choose it ;) > 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. Ugh, so it's actively borked on windows right now? > The attached, which fixes the issue for me, needs to be back-patched to > v11. Looks consistent with what we have rn. But: > diff --git a/src/bin/pg_verify_checksums/pg_verify_checksums.c b/src/bin/pg_verify_checksums/pg_verify_checksums.c > index 1bc020ab6c..a6c884f149 100644 > --- a/src/bin/pg_verify_checksums/pg_verify_checksums.c > +++ b/src/bin/pg_verify_checksums/pg_verify_checksums.c > @@ -54,6 +54,10 @@ static const char *const skip[] = { > "pg_filenode.map", > "pg_internal.init", > "PG_VERSION", > +#ifdef EXEC_BACKEND > + "config_exec_params", > + "config_exec_params.new", > +#endif > NULL, > }; > 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. 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). I think at the very least you're going to need to pattern match to relation looking files. Greetings, Andres Freund