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 1muz2l-0005uP-3O for pgsql-committers@arkaria.postgresql.org; Wed, 08 Dec 2021 15:39:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1muz2j-0008QP-FV for pgsql-committers@arkaria.postgresql.org; Wed, 08 Dec 2021 15:39:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muz2j-0008QG-8I for pgsql-committers@lists.postgresql.org; Wed, 08 Dec 2021 15:39:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muz2g-0000o2-PV for pgsql-committers@lists.postgresql.org; Wed, 08 Dec 2021 15:39:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1B8FdZfT3655284; Wed, 8 Dec 2021 10:39:35 -0500 From: Tom Lane To: Andrew Dunstan cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Check that we have a working tar before trying to use it In-reply-to: References: Comments: In-reply-to Andrew Dunstan message dated "Wed, 08 Dec 2021 15:24:23 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3655282.1638977975.1@sss.pgh.pa.us> Date: Wed, 08 Dec 2021 10:39:35 -0500 Message-ID: <3655283.1638977975@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > Check that we have a working tar before trying to use it I don't like the way you did this: + || system_log($tar, '--version') != 0); ISTM that effectively restricts the test to only running on machines with GNU tar, which basically removes all the interest of it. We know what GNU tar does ... it's the weird legacy tar versions that might teach us something. See 57b5a9646 for a recent example of the sort of bug this test can no longer find. regards, tom lane