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 1nZKH2-000624-OW for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2022 22:25: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 1nZKH1-0006iu-C8 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2022 22:25: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 1nZKH1-0006ik-2Y for pgsql-hackers@lists.postgresql.org; Tue, 29 Mar 2022 22:25:11 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZKGy-0002j6-Ke for pgsql-hackers@lists.postgresql.org; Tue, 29 Mar 2022 22:25:10 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 789E13201EA6; Tue, 29 Mar 2022 18:25:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 29 Mar 2022 18:25:06 -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=D/Ng5Lt9ExhWoSz0tEqzTgujSvwYDBQAgsJ52Y NEbMs=; b=Odtizyf6neakfuST+hn1FFwULdYCpvSHxMHwxAYqD3L6oijObt4gpo 0F9uWbh4JPY1UI7WNS/WUZtRkZYKHRHI2paR5pYp4ITrA0b6WjY2YTmgwASBhkWR ZaZLJnIgQ7XEfbCJAF9dWRHH9Vuw1Ba1vWELzrRUEOz9auSyjeKZdBJLe/kIOJuG j95U49i5K2KVjQAGjzimsU4/HoefD6EjbrluuG6xQpPOaKTz2QCHPlMXPMQJFCV4 AajWn7s1nk5+yZlgYJSoz3XLG3KczYJ++P2VIOSHVajYe55vDH6srO52gCDvKBUt 4xf7PJWliATMJd10iUGef69TFhYltRpw== 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=D/Ng5Lt9ExhWoSz0t EqzTgujSvwYDBQAgsJ52YNEbMs=; b=fcT20S8zJqLMlu4R25Fgrm40xSWkAU8Mb +/sAcXCIYwSKtmyHJ0+hVVK2QtzwhCsE9BAR+gmz7TDEHzJXstrB3EEbF6Dp7z9u P8gQlKyM/O/NREL6F/2FqHbTSPvSgGrQyRIj8RKsjf6lQtHtXYx3jpMkqKoFhJgL iVcZNc5bnfQ328mwLtVlVu5KvrTQA8A9tctz7XrLYtvPfEuL3drPlgHog18EDkmb AFsRYuuR/YIBLlpAKTGva5SASWdkp1UTGiTOHY4jDRiY26mV4ZytWOezmpZd1iSz LhmthJ3mEVDpLBzLmAUYkAM5/8vzXlhWWldrIXcecCcV4NnrTLsUA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeiuddgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpeevhfejveehvddvgfdtueefuefhhfetkefgfedtkefhieeuudefveduffdu gfdvgeenucffohhmrghinheptghirhhruhhsqdgtihdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgii vghlrdguvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Mar 2022 18:25:05 -0400 (EDT) Date: Tue, 29 Mar 2022 15:25:04 -0700 From: Andres Freund To: Robert Haas Cc: Thomas Munro , PostgreSQL Hackers , Magnus Hagander Subject: Re: pgsql: Add 'basebackup_to_shell' contrib module. Message-ID: <20220329222504.aylyimyub6igsvpy@alap3.anarazel.de> References: <626827E9-4A50-493D-A8EE-EB3C238BB47F@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 2022-03-29 17:19:44 -0400, Robert Haas wrote: > On Tue, Mar 29, 2022 at 4:36 PM Thomas Munro wrote: > > It failed: > > > > https://cirrus-ci.com/task/5567070686412800 > > https://api.cirrus-ci.com/v1/artifact/task/5567070686412800/log/contrib/basebackup_to_shell/tmp_check/log/001_basic_primary.log > > https://api.cirrus-ci.com/v1/artifact/task/5567070686412800/log/contrib/basebackup_to_shell/tmp_check/log/regress_log_001_basic > > Hmm. The log here is not very informative. It just says that the first > time we tried to use the 'shell' target, it timed out. I suppose the > most obvious explanation for that is that the shell command we > executed timed out: > > qq{type con > "$escaped_backup_path\\\\%f"} > > But why should that be so? Does 'type con' not respond to EOF? This is trying to write stdin into a file? I think the problem may be that con doesn't represent stdin, it it's console input. I think consoles are a separate thing from stdin on windows - you can have console input, even while stdin is coming from a file or such. Didn't immediate find a reference to a cat equivalent. Maybe just gzip the file? That can read from stdin across platforms afaict. Greetings, Andres Freund