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 1nZW4e-0003Ey-Ey for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2022 11:01:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZW4d-0004rp-7F for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2022 11:01:11 +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 1nZW4c-0004rf-UF for pgsql-hackers@lists.postgresql.org; Wed, 30 Mar 2022 11:01:10 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZW4Z-0000zw-FV for pgsql-hackers@lists.postgresql.org; Wed, 30 Mar 2022 11:01:10 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id 45D37E0006; Wed, 30 Mar 2022 11:01:03 +0000 (UTC) Message-ID: <684ed71e-0876-60c0-8e44-066ba702f0a6@dunslane.net> Date: Wed, 30 Mar 2022 07:01:01 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: pgsql: Add 'basebackup_to_shell' contrib module. Content-Language: en-US To: Thomas Munro , Andres Freund Cc: Robert Haas , PostgreSQL Hackers , Magnus Hagander References: <626827E9-4A50-493D-A8EE-EB3C238BB47F@anarazel.de> <20220329222504.aylyimyub6igsvpy@alap3.anarazel.de> From: Andrew Dunstan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/29/22 20:48, Thomas Munro wrote: > On Wed, Mar 30, 2022 at 11:25 AM Andres Freund wrote: >> Didn't immediate find a reference to a cat equivalent. Maybe just gzip the >> file? That can read from stdin across platforms afaict. > . o O ( gzip | gzip -d ) > Triple bleah. If we have to do that at least we should probably use `gzip --fast` cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com