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 1lVp5M-0000Nz-Ni for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Apr 2021 05:26:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lVp5L-0002ov-G8 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Apr 2021 05:26:07 +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 1lVp5K-0002on-48 for pgsql-hackers@lists.postgresql.org; Mon, 12 Apr 2021 05:26:07 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVp5E-0006kU-Gn for pgsql-hackers@lists.postgresql.org; Mon, 12 Apr 2021 05:26:04 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 24EF85C008C; Mon, 12 Apr 2021 01:25:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 12 Apr 2021 01:25:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=X1SriCeqctYHBY9cZ8HL3Ay/dY3 MXyaa68yC5887O0U=; b=T/mMkg5i+rjL9PsXsKpiNIdFXlbLXRCqhyRenhu2Ccn Vr3kbFMlcT1eORCAT3e/rSOA8R8/1mWKyxgjaP7vwSzrA+F+nOXGQ0PpUhnpW0U8 +2NwQNRsmxDuCEfCFBDKEOOTClM8AjBcAa5HervDezIgMpnazuCrWC+j37y1AXTJ tSOooaklKOSGZUOtzo4NmoAb5drWqB1pBJjdfuD0dDIF7uUNSkuSpAa4CJ2bu88l Sl8Fwaq/21YrHopot8tpLOHcDy9xaLLWMXJgVw8PoUdUCPUFCTftRV7sUpb4L8gi 1/NgApJFS/iY+/F8Wd+0VsWIs06Grc9kDoy7DxSPb+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm2; bh=X1SriC eqctYHBY9cZ8HL3Ay/dY3MXyaa68yC5887O0U=; b=sz+zCs1W4yehAHexdiXN0h pNIp0GwjIR+DohpTM8Y3IK4F68ED8sVhiKT++xs4YB4rrzeynuRYrLmMmwCeHLHI KL2VwsSxtZZlgtXfYTcC4UG+EeUOl8/KkSuweiitPtAcPW9foa4Ol8nczJkxYSab VJxPAigWqhEKEXflkt0iKNAMTFmizVkm550dY/zoVtqGSvbQHawsf60mDU8g8KCg Kdgm4g5KUaFwsB7s6FEb6he/G/xp8MVnkpMnvmRFsNjLBP3yS4KhVMSpsY1zMAAL J96qvs95hBoUsOhhrQAT7Ne8n8KHcCyuNnubHAykp9I8t7crPNnThT6swbgX8j2w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekiedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpefhtdejhedugfetkeejhfehkeek teejjefffeekleeugedvhfffffdutefgudeiheenucffohhmrghinheptghpuhhtuhgsvg drohhrghenucfkphepudduuddruddtvddrudektddrudekheenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivg hrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id D2B9A24005E; Mon, 12 Apr 2021 01:25:56 -0400 (EDT) Date: Mon, 12 Apr 2021 14:25:53 +0900 From: Michael Paquier To: Noah Misch Cc: Robert Haas , Christoph Berg , PostgreSQL Hackers Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres Message-ID: References: <20210325025659.GA4017435@rfd.leadboat.com> <20210410030710.GB978274@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j0oTrI6A5AiHXbzs" Content-Disposition: inline In-Reply-To: <20210410030710.GB978274@rfd.leadboat.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --j0oTrI6A5AiHXbzs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 09, 2021 at 08:07:10PM -0700, Noah Misch wrote: > "pg_regress --outputdir" is not a great location for a file or directory > created by a user other than the user running pg_regress. If one does "m= ake > check" and then "make installcheck" against a cluster running as a differ= ent > user, the rmtree() will fail, assuming typical umask values. An rmtree()= at > the end of the tablespace test would mostly prevent that, but that can't = help > in the event of a mid-test crash. Yeah, I really don't think that we need to worry about multi-user scenarios with pg_regress like that though. > I'm not sure we should support installcheck against a server running as a > different user. If we should support it, then I'd probably look at letti= ng > the caller pass in a server-writable directory. That directory would hou= se > the tablespace instead of outputdir doing so. But, then, we would be back to the pre-13 position where we'd need to have something external to pg_regress in charge of cleaning up and creating the tablespace path, no? That's basically what we want to avoid with the Makefile rules. I can get that it could be interesting to be able to pass down a custom path for the test tablespace, but do we really have a need for that? It took some time for the CF bot to run the patch of this thread, but =66rom what I can see the tests are passing on Windows under Cirrus CI: http://commitfest.cputube.org/michael-paquier.html So it looks like this could be a different answer. -- Michael --j0oTrI6A5AiHXbzs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBz2eEACgkQnvQgOdby QH0VGw/9G4/VoqDPFlucmiY7c7mrDzVjCG3x48J1zNJXhVNphve/O5XXII68Tdtk nYPbbsGXKsUEhsApuVERtQjENOoMi5wUsX9dWwabtzbP08+U588Wg8FTVThnJgP9 vHwUfmUfYAkbm3uZQyHTYMhBd620MlgHlnymONAkSKAV0kW1pMEyuHwzU4BS3OC5 /hTr9KjDtESquagf2H+0nK5D61fPTivMNLViEXVD45mgv5yXIoH3jB1Pb+OBV1Nt OM4MYBU3+5UBTnsGT1N7KIMT5n8Ioa4yirSP8NsSovtjbuVmBQHHxRhB2SZPb2qI JMe9sqhafIod1UbIDNdZQKgTRW4vsOxdqg2IAGovrUWvScM4CqKkWILMYJbr9kT7 EX6uMUyoW5KbXgWboHkFYQ7zzZicys9slFvIEO1CzDuw33D7jH9KDrBpXdErh65K e5EEo0ZoBP6IN3BNRtTM7g0OrYxhcxfgmnO1Q1HyRZkVYQFtTDxSmPxc/l1we0VB s9wn64s+pHjgb7jB4sRzturQ/IaXRC9ru4RHLt2d6h7Blli4TQyWuM77qHEtI72D EI98OyOen1cZfzJ/+QiCcfYAf90QrVriRDVzfkWWZr9TBJnk028Xsv66vrLNRFx5 UJVipaqHWhlrph84QsOOlrjVpI/fF+xQV21OHYfTcrA5oHYQmF0= =xTY/ -----END PGP SIGNATURE----- --j0oTrI6A5AiHXbzs--