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 1nZbEK-0002Xf-H6 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2022 16:31:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZbDL-0003Ig-7m for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2022 16:30:31 +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 1nZbDK-0003IX-Uk for pgsql-hackers@lists.postgresql.org; Wed, 30 Mar 2022 16:30:30 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZbDI-0002ja-8I for pgsql-hackers@lists.postgresql.org; Wed, 30 Mar 2022 16:30:30 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 174463200907; Wed, 30 Mar 2022 12:30:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 30 Mar 2022 12:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=lQJo2yG7cwLMy++dMvIj8uYL31saByTpRDJHf5 h/E/g=; b=tbJs4SLYNmnpVJp9Dy7B3p+aKiMsWvgIxoqWepyi508r02WjZLhawj MzsfQFmbPLrlz6cReJRP/ofFwZr/UQwguNIiztwuGC0DGbbq4xje5yUfpaz2AZie aTwT1YzP2ipJhrq+Ulsz7Kg1x63PbhDx0zibc1FRfrfBLDpQcFAlwfDQS+WTm9p8 4m0HXY/RdSdotJFfXAidDGjpfB6jiyo07bD1YJMYVD3ywrPJkGHSh2CYYK7rhSjw K9pWx0nK6zb5+VwahM5fW6P/HDR5dVCFPstQ6B5WsElBISBeusLAd5+uyngVnC3n ZWZvQO43s6vVLue40COPKu8gWmKInaDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=lQJo2yG7cwLMy++dM vIj8uYL31saByTpRDJHf5h/E/g=; b=Amz8L56Z47LCtmCtEpj2gKzEM8aD0KQG5 m437qSWCGl/i84ZOwl3GiYs1wuBLO/nDWtM4GtMgUfWcKiZ7TZ9X2RfH7jj1oiDa vJxeUtgWw0lThzCt6+AnV83IZ5okRDbfwwOjh5ZlEpa6S3FDRlDBSDgIZq5LeKKZ O8ZfUCfOXASn6ChbPOrMIMpmbVJXMbUyaj4Db8cObb4ukgp8ivLU2xEyqVZXrTW3 JqgQC/nxCy1+P7gY37+uZ2l5qKB9PTUuwS1550ml4T0v5x46k/jhci8hJeBzYGla boDPe2lbKoBD0B8G5n4bEThuhlWdC5pcGdhX5r5KITZlG/QA4tPsQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeivddguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvefhjeevhedvvdfgtdeufeeuhffhteekgfeftdekhfeiuedufeevudff udfgvdegnecuffhomhgrihhnpegtihhrrhhushdqtghirdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgr iigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 30 Mar 2022 12:30:25 -0400 (EDT) Date: Wed, 30 Mar 2022 09:30:24 -0700 From: Andres Freund To: Robert Haas Cc: Andrew Dunstan , Thomas Munro , PostgreSQL Hackers , Magnus Hagander Subject: Re: pgsql: Add 'basebackup_to_shell' contrib module. Message-ID: <20220330163024.fsbpbxwxh5oo2ktx@alap3.anarazel.de> References: <20220329222504.aylyimyub6igsvpy@alap3.anarazel.de> <684ed71e-0876-60c0-8e44-066ba702f0a6@dunslane.net> 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 On 2022-03-30 08:53:43 -0400, Robert Haas wrote: > Here's a new series, adjusted to use 'gzip' instead of 'cat' and 'type'. Seems to have done the trick: https://cirrus-ci.com/task/6474955838717952?logs=test_contrib_basebackup_to_shell#L1 # Reconfigure to restrict access and require a detail. $shell_command = $PostgreSQL::Test::Utils::windows_os ? qq{$gzip --fast > "$escaped_backup_path\\\\%d.%f.gz"} : qq{$gzip --fast > "$escaped_backup_path/%d.%f.gz"}; I don't think the branch is needed anymore, forward slashes should work for output redirection. Greetings, Andres Freund