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 1qGKtZ-0006b0-MA for pgsql-committers@arkaria.postgresql.org; Mon, 03 Jul 2023 14:51:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qGKtY-0006QB-AF for pgsql-committers@arkaria.postgresql.org; Mon, 03 Jul 2023 14:51:16 +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 1qGKtY-0006Pv-3f for pgsql-committers@lists.postgresql.org; Mon, 03 Jul 2023 14:51:16 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qGKtV-001p16-B6 for pgsql-committers@lists.postgresql.org; Mon, 03 Jul 2023 14:51:14 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 557E420013; Mon, 3 Jul 2023 14:51:04 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------mP6Ve0TqUsw2PtfZejbPJlxq" Message-ID: Date: Mon, 3 Jul 2023 10:51:03 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: pgsql: Improve pg_basebackup long file name test Windows robustness Content-Language: en-US To: Daniel Gustafsson Cc: pgsql-committers@lists.postgresql.org References: <523D7BB7-53E9-46D3-A564-CEFA16C2E823@yesql.se> From: Andrew Dunstan In-Reply-To: <523D7BB7-53E9-46D3-A564-CEFA16C2E823@yesql.se> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------mP6Ve0TqUsw2PtfZejbPJlxq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-07-03 Mo 10:19, Daniel Gustafsson wrote: >> On 3 Jul 2023, at 16:08, Andrew Dunstan wrote: >> >> Improve pg_basebackup long file name test Windows robustness >> >> Creation of a file with a very long name can create problems on Windows >> due to its file path limits. Work around that by creating the file via a >> symlink with a shorter name. > +dir_symlink "$pgdata", "$lftmp/pgdata"; > > dir_symlink doesn't exist in REL_12_STABLE. Argh!. ok, thanks, will fix. cheers andrew > -- > Daniel Gustafsson > -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------mP6Ve0TqUsw2PtfZejbPJlxq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 2023-07-03 Mo 10:19, Daniel Gustafsson wrote:
On 3 Jul 2023, at 16:08, Andrew Dunstan <andrew@dunslane.net> wrote:

Improve pg_basebackup long file name test Windows robustness

Creation of a file with a very long name can create problems on Windows
due to its file path limits. Work around that by creating the file via a
symlink with a shorter name.
+dir_symlink "$pgdata", "$lftmp/pgdata";

dir_symlink doesn't exist in REL_12_STABLE.


Argh!. ok, thanks, will fix.


cheers


andrew


--
Daniel Gustafsson

--
Andrew Dunstan
EDB: https://www.enterprisedb.com
--------------mP6Ve0TqUsw2PtfZejbPJlxq--