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 1o9OS3-0001lx-Uy for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jul 2022 10:09:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o9OS2-00005G-R3 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jul 2022 10:09: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 1o9OS2-0008M6-Gg for pgsql-hackers@lists.postgresql.org; Thu, 07 Jul 2022 10:09:38 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o9ORz-0003GI-Kx for pgsql-hackers@postgresql.org; Thu, 07 Jul 2022 10:09:37 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 319B43200931; Thu, 7 Jul 2022 06:09:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 07 Jul 2022 06:09:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id: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; t=1657188573; x= 1657274973; bh=wZ+xI8R0fh66PGXkX8wb95udrDYh5vfPu8fa2oRur7g=; b=p DDx7sQnwup5PZcIDPsDSZnpFD1U5I0riMNdFpv+jAKuzSr1664jjcgOEO63H/nhi E/5+mMJpMUSZkmWEAEQZ+sX4VBQlmBZdRMkM7ERnFxhUNrHCyKvFoa8SAsRhX8WH tYeXwU8XLT3OK2P5r0W7U2xodEVTdxgF0pz8q/rebag7WRoN4rLSuAyirS6dd5Ks rps4Y6pwRSWNAVWtvssw7I4TgstBF9Gn4H0qLV/6MMVWTAiZaauz5F7X6/Wruov4 FJ+HICnyhnyf3bdt6eUs815xjC+LzwrZq26DpMXVMNkgIKQvIUouW+1Gg6HFOp/m 0YFkullPsmASwllMa8Fkw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeihedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 7 Jul 2022 06:09:32 -0400 (EDT) Message-ID: Date: Thu, 7 Jul 2022 12:09:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC] building postgres with meson -v9 Content-Language: en-US To: Andres Freund Cc: pgsql-hackers@postgresql.org References: <20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de> <20220701093312.phiokhpoqaftuer5@alap3.anarazel.de> <0e81e45c-c9a5-e95b-2782-ab2dfec8bf57@enterprisedb.com> <20220706132126.2zwx7nzgz73xf5yf@awork3.anarazel.de> From: Peter Eisentraut In-Reply-To: <20220706132126.2zwx7nzgz73xf5yf@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 06.07.22 15:21, Andres Freund wrote: >> Here is my rough assessment of where we are with this patch set: >> >> 08b4330ded prereq: deal with \ paths in basebackup_to_shell tests. >> >> This still needs clarification, per my previous review. > Hm. I thought I had explained that bit, but apparently not. Well, it's pretty > simple - without this, the test fail on windows for me, as soon as one of the > binaries is in a directory with spaces (which is common on windows). Iimagine > what happens with e.g. > qq{$gzip --fast > "$escaped_backup_path\\\\%f.gz"} > if $gzip contains spaces. > > > This doesn't happen currently on CI because nothing runs these tests on > windows yet. Hmm, maybe this patch looked different the last time I saw it. I see your point. The quoting of "$gzip" is clearly necessary. What about the backslash replacements s{\\}{/}g ? Is that also required for passing the path through the shell? If so, the treatment of $tar in that way doesn't seem necessary, since that doesn't get called through an intermediate shell. (That would then also explain why $gzip in the pg_basebackup tests doesn't require that treatment, which had previously confused me.) If my understanding of this is correct, then I suggest: 1. Add a comment to the $gzip =~ s{\\}{/}g ... line. 2. Remove the $tar =~ s{\\}{/}g ... line. 3. Backpatch to PG15.