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 1mvDFM-0003o3-EK for pgsql-committers@arkaria.postgresql.org; Thu, 09 Dec 2021 06:49:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mvDFK-00057T-KR for pgsql-committers@arkaria.postgresql.org; Thu, 09 Dec 2021 06:49:38 +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 1mvDFJ-00057J-0V for pgsql-committers@lists.postgresql.org; Thu, 09 Dec 2021 06:49:38 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvDFF-0004hH-7P for pgsql-committers@lists.postgresql.org; Thu, 09 Dec 2021 06:49:36 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 90ECB3200F6F; Thu, 9 Dec 2021 01:49:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 09 Dec 2021 01:49:31 -0500 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=fm3; bh=UVNmpPCfQc4cH6jJ2QMSENa6Bhs ozBoxG85ZiURR9Uk=; b=E1PqfRa9B01VIyDFWJCHWj7NcaYM2UTlGKGAO2dAHul RC0rcPSP/y1bPaWEfiL+pwl5NdQmVRiT36BzpQcT06STyhp3wDBG1/Dx9KnvYvxv FJVy9UrIFPY+J8ee17cTWOJvXkDnvPuWao1rI3CVxJBDArorDNuV+IbxmEgDUELm Hbh7A9axNuOKNEgO7pbp5D00lPhiyICUNA7wTiTHfvptbopp+d4i9U8OQrtyTd00 DsV646xvj/ryuIibspl4HP+GRS1zmGBhqWfxG3FsNU9mulYPa8dCKA+lfpro7/uV aKj0XqKMylVR91PnlyFt8vCIQ9SPYI8iUaN6h2EcvTA== 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=UVNmpP CfQc4cH6jJ2QMSENa6BhsozBoxG85ZiURR9Uk=; b=BeWylQwVysYTkf1YE9cQ+l Fg6CYhllZCw5xWxc5CvAplOa+MYKlU19NJAwQsTXMIOEf+IWCohprtSAPXQbqV4H dzSOQZMYksQDptOqrsOk43RGi9+GKp91pFoUkq1aQuLk1H0UqntPc0lUYMxZ6JQw 75DKj7xn9e/YJpLJn2arMRRqhXO0coPMcFBwFCBf4zoNt/Bc2Fn6zPTfjpeq6060 +BKlSO02+RgFau4he8YmptQ0EN5nFR8RnlKH0r/nLkdvUbztavkaU2hHGwBQeXfK M0TYQsCL4S2HbYKrsXUhiYk1o3j6+1afGGE0KAFLsGMljHy8R3AWoJAEMagNA2sA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrjeelgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpeeuhedtveevffejtdfgfefgjeevueegjeejkefgleelleejuedvieffleei jeehtdenucffohhmrghinheptghirhhruhhsqdgtihdrtghomhdpghhithhhuhgsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghn ughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Dec 2021 01:49:29 -0500 (EST) Date: Wed, 8 Dec 2021 22:49:28 -0800 From: Andres Freund To: Michael Paquier 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: <20211209064928.7f5lp6hxvw2f2j6o@alap3.anarazel.de> References: <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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2021-12-09 14:47:39 +0900, Michael Paquier wrote: > 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 relying 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. > > > > That worked: https://cirrus-ci.com/task/6302355785252864 > > https://github.com/anarazel/postgres/commit/49cf19f160080353da391f177a7d8c28218023bb > > Well, I am afraid that this is not a completely stable path. That > would not work here, for one. Could you expand on why it doesn't work? As far as I can tell tar is shipped with windows these days, and %SYSTEMROOT%/system32/tar.exe should point to that tar? Greetings, Andres Freund