Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvCHb-0006Uz-7K for pgsql-committers@arkaria.postgresql.org; Thu, 09 Dec 2021 05:47:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mvCHZ-0000Il-Nr for pgsql-committers@arkaria.postgresql.org; Thu, 09 Dec 2021 05:47:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvCHY-0000Ib-81 for pgsql-committers@lists.postgresql.org; Thu, 09 Dec 2021 05:47:53 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvCHU-0004C6-Na for pgsql-committers@lists.postgresql.org; Thu, 09 Dec 2021 05:47:51 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 2BA9E320091A; Thu, 9 Dec 2021 00:47:46 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 09 Dec 2021 00:47:46 -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=TOAmjDxsqXPLnv1V7tszRjKMfAm TqyddYATjBfToxmc=; b=UN5gcMA2y9ER944pRrd/kOxm3UPER1ARzrVWISaoxNM TySA3wK3SB1ntQDdNHRvvDoKFIAAN8oyvDBg44GcV9OqfiGc86ESWtTCwyjJa7yT SPT4h74/klwJNr1AF+8ionOEFgfTnhZJCAExR8Og+fH9FJYAgQboKMlO5R79OCxE VqP4SL4p1qS4Io+UwwV/I7Mb0Aukn3GlJ3uiCAJ1V37wue20KE2atci9nl8i3YJ6 hoHP/VIPFw4NDM1E2xC3wPUjLOFgGoPdMAMdQ2POTvYUUijKsHhK9kMi00e1SUB2 RS4AZ/97UrnVmBFvxxPJFbEo9VV+2V4flZivaaiW3cA== 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=TOAmjD xsqXPLnv1V7tszRjKMfAmTqyddYATjBfToxmc=; b=YFMKA82AXTZ2Fga0280iBG GjwfTVKheE3s/vgdsyESOACvYyLzuY/FlF9c6EabzzPA2okfYY3gs3djqqxmB3Fm oWBTgZ6b+BxgGbH8NuZ2yAS3iBXsqcGyYqOI9q0Sob4OcAgUOtLjPhK0cMop7USJ +8lMhlTI6XPBsItCxLN7C0vw2DXg5vAsCA2azSV0wLsL01KhkZZ3OtElQTlJPimA Jp2kKk9HlKGqnGF7TBuOvYGcfVIZX0WYsxVGEl5zq4TohqE2l3dK1Jsc1/97hCvi hhyrwIL4MNLH/Qvg/xr6HFEHB1VZgj0ByeXJ8KpmSeYUL5kolenVX0w9UzjDEJlQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrjeelgdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculddvfedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepheeufeevffegfeeihfetfeduhfdv udefgedufeduheetjedtueejhedvfeekhfejnecuffhomhgrihhnpegtihhrrhhushdqtg hirdgtohhmpdhgihhthhhusgdrtghomhdpphhoshhtghhrvghsqhhlrdhorhhgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlh esphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Dec 2021 00:47:43 -0500 (EST) Date: Thu, 9 Dec 2021 14:47:39 +0900 From: Michael Paquier To: Andres Freund Cc: Tom Lane , Andrew Dunstan , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Check that we have a working tar before trying to use it Message-ID: References: <3655283.1638977975@sss.pgh.pa.us> <2e118a11-6936-21ec-6782-e9dbb20972c2@dunslane.net> <3657697.1638980149@sss.pgh.pa.us> <3660797.1638983124@sss.pgh.pa.us> <20211209021604.bv5tfr23ymh4u7x4@alap3.anarazel.de> <3707204.1639016334@sss.pgh.pa.us> <20211209024604.dpmudj4ax2hoi7cx@alap3.anarazel.de> <20211209030856.ibxewzpc5ph7ckkp@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/zVsbBhqFh4/hVC2" Content-Disposition: inline In-Reply-To: <20211209030856.ibxewzpc5ph7ckkp@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/zVsbBhqFh4/hVC2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 08, 2021 at 07:08:56PM -0800, Andres Freund wrote: > On 2021-12-08 18:46:04 -0800, Andres Freund wrote: >> On 2021-12-08 21:18:54 -0500, Tom Lane wrote: >> It's not stable, but afaict all the "instability" can be handled by rely= ing on >> a system-set environment variable... Referencing it as >> $ENV{SYSTEMROOT}/system32/tar.exe ought to work? I'll test that approach= via >> CI, but of course that won't verify that it works in all kinds of odd >> installations. >=20 > That worked: https://cirrus-ci.com/task/6302355785252864 > https://github.com/anarazel/postgres/commit/49cf19f160080353da391f177a7d8= c28218023bb Well, I am afraid that this is not a completely stable path. That would not work here, for one. Could it be possible to use a soft failure instead? If $ENV{TAR} is defined but the command cannot be found, what Tom proposed upthread seemed like a good alternative to me, as of: https://www.postgresql.org/message-id/3657697.1638980149@sss.pgh.pa.us If this is switched to a hard requirement for any Windows environment (I can adapt to the new order), it would be better to document all that in the section of the docs for Windows and the tests of vcregress.pl or users could finish with surprising failures. -- Michael --/zVsbBhqFh4/hVC2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmGxmHsACgkQnvQgOdby QH1n7Q/9H7G9xOfBAF0YmeMav1eAzcXMRwoAMZ5/PcYr1ePB9NSd6LOdxCrbwIbp GXhdwW9iTLGKQ4UouXnFe3uOR3GSwRWuuGLUvkHYUEkJIa6lKNhL5ZO8h1EfnILe 5H6ymX2vR8LMeFw1S8jhHmeCUzJx4IWikNEGufHKsSy/qu6GmVvjUcVZoMcgt1Bh Lv+MlaUrPHYjr01h4RC99d8hteVfSCvJJD53v9HS+5pWEoTkFyrEFG2YsQEIQghL dOiL3Xq6fD+ics0n3kh1+2abI+Qgpc4djQSb7B7/zJDhIsR5/KKFbPmZ3owYKUsZ BWNjFw6+ZVm9aMYqH4SmGY386SjRLchOglNQj6dP3ORZ0+ZjQJiY42OLFIsBv/RM 5tCD716Dv0wfyTC6dBt1/vD4E1RgmSneRtBm1sZ6Gp02hty2CaM547rvW1A5HS3k aycQeYfNo+8WVuGqNG5p5/9HJR5JHBtXQCZq5Xc72ZRSoIknn0q7Sjy+9BeK9wFu ae2nhK3c1oCrb4i8BCuHk1YXPm5IH0dTeTQp7B7AwC1CTmrTeyNvwN90U8YpFVtN LM1zLFMYDapU22gTThjUh0HOznV7S11v3BbRo/5UAUm1dI9y66OUCXetaTuDRSth BifSG9itYnYhKnbEHb6oaskT0hy1B+B8Wgo0RX+/y5gtTTUqAqo= =Apgk -----END PGP SIGNATURE----- --/zVsbBhqFh4/hVC2--