From: Michael Paquier <michael@paquier.xyz>
To: Noah Misch <noah@leadboat.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Christoph Berg <myon@debian.org>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
Date: Tue, 13 Apr 2021 16:26:46 +0900
Message-ID: <YHVHtjRNUGy13VpO@paquier.xyz> (raw)
In-Reply-To: <20210413053610.GB1139770@rfd.leadboat.com>
References: <YFnWBYinNf1s0Y6v@msg.df7cb.de>
<YFqRGvGasd8RyltU@paquier.xyz>
<YFsMzeLE9iiuKJ2a@msg.df7cb.de>
<CA+TgmoYJP7wfat2xCMHeqs4nN4XCVOYCRWTbbPU8Puq007oeDA@mail.gmail.com>
<YFvAsqZopd94JP1p@paquier.xyz>
<20210325025659.GA4017435@rfd.leadboat.com>
<YG/tf6HTZFj4hWlb@paquier.xyz>
<20210410030710.GB978274@rfd.leadboat.com>
<YHPZ4WDnCxhOUVLz@paquier.xyz>
<20210413053610.GB1139770@rfd.leadboat.com>
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!=pg_regress_user is unwarranted and Christoph Berg
> 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
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="$outputdir"/testtablespace' and have the
> makefiles consult $(TABLESPACEDIR) rather than hard-code ./testtablespace.
> (That said, I like how 6c788d9 consolidated Windows and non-Windows paths.)
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!=pg_regress_user before this
> 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 works
> for a rather-narrow interpretation of server_user!=pg_regress_user, failing 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
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, noah@leadboat.com, robertmhaas@gmail.com, myon@debian.org, pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
In-Reply-To: <YHVHtjRNUGy13VpO@paquier.xyz>
References: <YFnWBYinNf1s0Y6v@msg.df7cb.de> <YFqRGvGasd8RyltU@paquier.xyz> <YFsMzeLE9iiuKJ2a@msg.df7cb.de> <CA+TgmoYJP7wfat2xCMHeqs4nN4XCVOYCRWTbbPU8Puq007oeDA@mail.gmail.com> <YFvAsqZopd94JP1p@paquier.xyz> <20210325025659.GA4017435@rfd.leadboat.com> <YG/tf6HTZFj4hWlb@paquier.xyz> <20210410030710.GB978274@rfd.leadboat.com> <YHPZ4WDnCxhOUVLz@paquier.xyz> <20210413053610.GB1139770@rfd.leadboat.com> <YHVHtjRNUGy13VpO@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox