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 1jrMPh-0007Vr-5c for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jul 2020 14:11:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jrMPf-0006uY-EL for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jul 2020 14:11:35 +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 1jrMPf-0006uQ-4k for pgsql-hackers@lists.postgresql.org; Fri, 03 Jul 2020 14:11:35 +0000 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrMPb-00036i-5q for pgsql-hackers@postgresql.org; Fri, 03 Jul 2020 14:11:33 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 03C0A1940099; Fri, 3 Jul 2020 10:11:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 03 Jul 2020 10:11:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=CHOIwAXJT0ZpJhTlzlANZ3PYXI/AUnIcn9TOQIods Nc=; b=a8/Kp/CDz3p0OCac9vcVru98QXbH1TGXA3gA6oXHMJot+emMjr4FFyEix 2nh7Kqr2vhSBwqRp+8ISGvmNC9RvVWXp21+9CplJCiLoLN5S3luC3b4/o+zK0lD2 fQucC7P13aeFhBg90yz9cGvaK+pJCG2dt7necjS7Dean11JomPAVK6Ihf0Q1gUoG jhjpEQZ1TZBWiLQ9K73dQ5y3FpNqnJFC4jM0YtkAZYTCghdLfF9kzeBVmyoGggn6 lmQFKLg8VYyZ1R2RD2FhX+UYp6GeegFDVoalVMcMmL2kyPSfuOkuucZVwTaZoCwO 1r9l2P/7ne9wzwBjvt7l1ljQAFa4w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtdeigdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefheenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpeevueetledvuedugffgvedu geduhfdvkeegueefhfdtgeeuudeghfehueegfefhieenucffohhmrghinhepvdhnughquh grughrrghnthdrtghomhenucfkphepleefrddvgeefrdduledurddvfeeknecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df3bfee.dip0.t-ipconnect.de [93.243.191.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 497B33060069; Fri, 3 Jul 2020 10:11:28 -0400 (EDT) Subject: Re: TAP tests and symlinks on Windows To: Michael Paquier References: <87sgf4pmb8.fsf@wibble.ilmari.org> <20200612065957.GA3362@paquier.xyz> <20200613060054.GM3362@paquier.xyz> <20200615062319.GF52676@paquier.xyz> <11c4ee09-3706-5912-ffd7-dc3657de7a5e@2ndQuadrant.com> <20200617074434.GB118592@paquier.xyz> <20200623105527.GA1974@paquier.xyz> <3ebcde2b-3b78-2e5f-9249-03c709dc23dd@2ndquadrant.com> <20200629075616.GC330401@paquier.xyz> <20200630121328.GB67289@paquier.xyz> Cc: Andrew Dunstan , =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , =?UTF-8?Q?Dagfinn_Ilmari_Manns=c3=a5ker?= , pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <504f09d7-d600-44ca-a32b-0ed209cc2273@2ndquadrant.com> Date: Fri, 3 Jul 2020 16:11:27 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200630121328.GB67289@paquier.xyz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-06-30 14:13, Michael Paquier wrote: > Attached is an updated patch, where I have tried to use a better > wording in all the code paths involved. This new patch doesn't work for me on MSYS2 yet. It fails right now in 010_pg_basebackup.pl at my $realTsDir = TestLib::perl2host("$shorter_tempdir/tblspc1"); with chdir: No such file or directory. Because perl2host requires the parent directory of the argument to exist, but here it doesn't. If I add mkdir $shorter_tempdir; above it, then it proceeds past that point, but then the CREATE TABLESPACE command fails with No such file or directory. I think the call symlink "$tempdir", $shorter_tempdir; creates a directory inside $shorter_tempdir, since it now exists, per my above change, rather than in place of $shorter_tempdir. I think all of this is still a bit too fragile it needs further consideration. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services