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 1gAmQX-00016C-0g for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Oct 2018 01:39: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 1gAmQS-00047E-48 for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Oct 2018 01:39:36 +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 1gAmQQ-000477-9j for pgsql-hackers@lists.postgresql.org; Fri, 12 Oct 2018 01:39:35 +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 1gAmQH-0003j0-8l for pgsql-hackers@postgresql.org; Fri, 12 Oct 2018 01:39:32 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 278F821F6A; Thu, 11 Oct 2018 21:39:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 11 Oct 2018 21:39:24 -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=DdvTKfmt5zWCZAVucdMp/Oex+B4 kvCgaE6+o5YwMnME=; b=f2B7bCFm3XHaw/mzZl1yA+kcn45oK9lO15yxiZYa+Ds uaZrVrqHoBbl9aDTKBBFhMye0lctS44lzKY81JcLILBAcOrtG5TP/sfx8aiLSCe6 yzsj19EGsYqzxWcyBGC3GbgsITSH/liZlUJHEJX6TTAg0AExRIvEU1RdtclAB9QX GKRbjsu46zUwFpuW05N3O/e3TGENAnnlaNlZwS1Xz8jXG/UAqS7iAzUBBteZSsMh cA0L+6AJSrJSQNkHXty7FYjCD8TNtuEEPT1ybLeM8W6sWJP3ixxpYUKfyo6WrnSu f+/gO/JrTNv8RIkf6Yg54NrqlGCIYJen+Euv4Pj00nA== 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=DdvTKf mt5zWCZAVucdMp/Oex+B4kvCgaE6+o5YwMnME=; b=hsV91H7sdhZ+hDaEBEpDns Tawy6wTnbiDdgt7EvcHeG1GKxnIaHqBGkfZGuDDhettDxTkrfvmoYnBNL+4WsU+Y btgn9h6KMDemEjzE8d36jIlmzqyGM5rCcPKgcHJ+QDilMQq7QEaCW5fUPHM8Wvv7 W58rjdOdY9tVViyNKiS5owRnURcSqeCs2mlB7lu0/6GIusESFRsSOzpv+u+otfLw UP82pEeWhDjxfzLReJPrqV5rVV90VolqMlnLBXHEisl86K7zo/+I8vWSUg5Bn0Mx XnyDz3asP86JBOLZ34B8cdZoYJyt4w4slDlLRClH5OAfhoaIxOBypGdq+/lUqbAA == 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 3BD5EE44D4; Thu, 11 Oct 2018 21:39:20 -0400 (EDT) Date: Fri, 12 Oct 2018 10:39:18 +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: <20181012013918.GA30064@paquier.xyz> References: <20181012005614.GC26424@paquier.xyz> <20181012010411.re53cwcistcpip5j@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2B/JsCI69OhZNC5r" Content-Disposition: inline In-Reply-To: <20181012010411.re53cwcistcpip5j@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --2B/JsCI69OhZNC5r Content-Type: multipart/mixed; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 (you will need to explain me one day face-to-face how you pronounce 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. The attached, which fixes the issue for me, needs to be back-patched to v11. -- Michael --AhhlLboLdkugWU4S Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="checksum-exec-backend.patch" Content-Transfer-Encoding: quoted-printable 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[] =3D { "pg_filenode.map", "pg_internal.init", "PG_VERSION", +#ifdef EXEC_BACKEND + "config_exec_params", + "config_exec_params.new", +#endif NULL, }; =20 --AhhlLboLdkugWU4S-- --2B/JsCI69OhZNC5r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlu/+0YACgkQnvQgOdby QH3kYhAAlVONB0H5KSuBA4gSz0tXrC2eyYCYW+dVEZFzMEc0bil85Tf1xQJptpkz VQ13qkkHiG7dUib91plViqRBCHfSjGMiFORfsKgQ7nwqXz2DLdqcTCpm43p6codT aNAlLqyB3CjYcsgxFCWSk1CWnrCWozSiqGo7+FYJ1gEFAxX4HpPUDNn/XO/JcIwN StFmNoPaEQ1Pr0K7Q5CFSQZAICoeOGbbkxhfQysCs8sDsZ2hFRNapY5vN/2pNb5d YS49Va2Vsjv5+cGlCe+MzTcsKfFYT7bnudEvzUhhdpksa/LBdhhcAHmKT5fbUe4z dJIdBFIPq9uba3TMBGOR1R3/ikyi6Psd48hTt460MXv3N3/ZFeostQpm2sHpn7zd sgXV7A1QeQeN3jtQJRjarOSkz3Z1DcNlmu947Cuky54JOJ5FdqvhYgDJbVSPCk1/ POigqvqB2ifpmHZXLjk6E3Ctg28sWsRm/KoQktgdQjnuhCkIRmxxO7AUAiuAfn3w wi8nQoKT2PW7ZgPY5Mpp/vMlNDFq9iiorbJZBde14KC7j2pqJMPXM/XiUmpZhgtZ ex/3JJ82RdJ6jf77QM/kag6n2jG3WxZ9yLTnXpm+lC4EbMiF5OTzB698GBqW5hE9 KODVw1O4bibPzcFZ+g3B4SiMNJ/Ye3jR1xzzbjPNQAT+P+78Qvo= =HYWJ -----END PGP SIGNATURE----- --2B/JsCI69OhZNC5r--