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 1lWDS7-0007RB-Dd for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Apr 2021 07:27:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lWDS6-00082T-82 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Apr 2021 07:27:14 +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 1lWDS4-00082M-U4 for pgsql-hackers@lists.postgresql.org; Tue, 13 Apr 2021 07:27:14 +0000 Received: from [66.111.4.27] (helo=out3-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWDS1-000188-JK for pgsql-hackers@lists.postgresql.org; Tue, 13 Apr 2021 07:27:12 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 055A05C0174; Tue, 13 Apr 2021 03:26:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 13 Apr 2021 03:26:58 -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=T4V4AmUpu/dq8LMDd/WhT2marjz BgZ/xnBeP9rHFQxg=; b=ZnX2D6ga+RTKbJWS7k7ZsNLQztgaReGIelMQX66CzM1 Kt0KlRf/OCV2k1OV4eLj00HoGKTL0y9D66EWZ1fZIrCbOHcZEbEzshyOeE/w8T73 x5dGwSHyg88V+QIuoChbzmcefxLMWPnMblFzLGlpgiILCJDb44JKClG/OBxw2K4P I/lfL/ZM3Guc9pMWAJNACyN87KMZte4FFU6P8laQuJfpyTZw7E7y3hAQrOmXpliP cN5XC/vpQnaDPxcWtsbFsOozTc0rqttQAdioBfnek1khPJ55DKtgzWZW/7KSnmpb E6M47eaCnmSqRuYAIJP6LAuNsE0Ot8SvS/dxrkiSEpQ== 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=T4V4Am Upu/dq8LMDd/WhT2marjzBgZ/xnBeP9rHFQxg=; b=Qk2nztCK9lXKieOSntkREi 9Jj27nIJmITwK9wy8v4JSGunhaT40kO9J+i/S1z4tN5mAeiHIUVpfCv4RqFc4dmf kEA2KCPYN7Y+lIbr5CVsKl4dRcsgzOdSIDQKM+GjD7QREGkiJoAkjU1UeOWHhwiI nXaCDGR8XRpvyOiSaAzR26DixBFdH8f7Z+8rCa88ku0xLHbUGevjjjiMrUPT8mUd HyNLTPxUY3voW0APa4j+Hmnz8rMrbwEL1P1+HYe9LpuevWPniCYm/Rk1oQHgD9DK 4D5UfML39cNRPYr8Ew4718Ir5GXtBuphoMGRv3tKoluaFmcjPtdZnwoKlZVV4EFw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekkedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduudekrddvgedurddvhe dtrdegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (mp76f1fa04.ap.nuro.jp [118.241.250.4]) by mail.messagingengine.com (Postfix) with ESMTPA id ED2801080057; Tue, 13 Apr 2021 03:26:55 -0400 (EDT) Date: Tue, 13 Apr 2021 16:26:46 +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> <20210413053610.GB1139770@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="enNzzgpcbHIYd4WP" Content-Disposition: inline In-Reply-To: <20210413053610.GB1139770@rfd.leadboat.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.27 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --enNzzgpcbHIYd4WP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 12, 2021 at 10:36:10PM -0700, Noah Misch wrote: > Christoph Berg's first message on this thread reported doing that. If > supporting server_user!=3Dpg_regress_user is unwarranted and Christoph Be= rg > should stop, then already-committed code suffices. Not sure that we have ever claimed that. It is unfortunate that this has broken a case that used to work, perhaps accidentally. At the =20 same time, Christoph has a workaround for the Debian suite, so it does not seem like there is anything to do now, anyway. > The race that commit 6c788d9 fixed is not inherent to Makefile rules. For > example, you could have instead caused test.sh to issue 'make > installcheck-parallel TABLESPACEDIR=3D"$outputdir"/testtablespace' and ha= ve the > makefiles consult $(TABLESPACEDIR) rather than hard-code ./testtablespace. > (That said, I like how 6c788d9 consolidated Windows and non-Windows paths= =2E) FWIW, I don't really want to split again this code path across platforms. Better to have one to rule them all. > I don't know. I never considered server_user!=3Dpg_regress_user before t= his > thread, and I don't plan to use it myself. Your latest patch originated = to > make that case work, and my last message was reporting that the patch wor= ks > for a rather-narrow interpretation of server_user!=3Dpg_regress_user, fai= ling on > variations thereof. That might be fine. Okay. So.. As I am not sure if there is anything that needs to be acted on here for the moment, I would just close the case. If there are more voices in favor of the SQL function using mkdir(), I would not object to use that, as that looks to work for all the cases where pg_regress is used. -- Michael --enNzzgpcbHIYd4WP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmB1R7YACgkQnvQgOdby QH1TPA/+INRlmBs7MsW9uBp6qjqE4wn/bMG5rJ2kRLqEUvrdy+Q1YqEXBeO+z1Oa VYKR3zuO/hWwl9D/lLCCI5a1MWYnxupA9XBdares3EJXAenRUP1bDc7SuR8cALDX 0n9G1c236Vd3Y8QWue66oGb/CdlA7S6RYHxhekRou4cvYgiHmg2vX8BweMH+WVX/ kIrE1nFzZlhr7vDSGfeeOOKnlRKnc5l+JLqfoo5FAkudoyYFyeESUnd6JOn+O0UM HhrYH2mkpcDfjZGWDKwsxhAsGMw2HjzGhgehLeiedXB1Vsrl3uuWgTzS6hBGeijx b6f8RYeXsgKkg8g/fnrO+rMy3YNiEfr28ynU9ZdiErqwDAY19jTqhrKMI9wf9YyW 13Tsb9UxtUXqeO997jPkV7VmlUlwLs4xPlX30QoPd5o8c3j4zPFEm9EjPWJ08QyH bYGItuWE5KRkzQye77v2HmIx0F5n7SUm42UezntCPZUO2zwItH39Q1WiRCvM3Kxt 7jRq2jvxrwjP4d7r/bHUhH9j2QGVLiryN/7hRYcHvUcmveDN/XFSuIYVvdRnZ3o3 MEeNf30/gLsOyXndRCdKTbQ1F+TldRLtZcZXCur+/42slbe4h1ZrKk5QakQjQf8f ZJ7B0TrEaEauMv3DcZ9lEcs4aAgimSqCPG3coV7L/iFNumO/UuM= =DN8e -----END PGP SIGNATURE----- --enNzzgpcbHIYd4WP--