From: Noah Misch <noah@leadboat.com>
To: Michael Paquier <michael@paquier.xyz>
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: Fri, 9 Apr 2021 20:07:10 -0700
Message-ID: <20210410030710.GB978274@rfd.leadboat.com> (raw)
In-Reply-To: <YG/tf6HTZFj4hWlb@paquier.xyz>
References: <E1lJroH-0006Oz-Gb@gemulon.postgresql.org>
<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>
On Fri, Apr 09, 2021 at 03:00:31PM +0900, Michael Paquier wrote:
> I have compiled a simple patch that uses a SQL function for the base
> tablespace directory creation, that I have tested on Linux and MSVC.
> I am still not sure if people would prefer this approach over what's
> on HEAD. So if there are any opinions, please feel free.
"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 "make
check" and then "make installcheck" against a cluster running as a different
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.
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 letting
the caller pass in a server-writable directory. That directory would house
the tablespace instead of outputdir doing so.
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: noah@leadboat.com, michael@paquier.xyz, 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: <20210410030710.GB978274@rfd.leadboat.com>
References: <E1lJroH-0006Oz-Gb@gemulon.postgresql.org> <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>
* 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