From: Christoph Berg <myon@debian.org>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
Date: Wed, 24 Mar 2021 10:56:29 +0100
Message-ID: <YFsMzeLE9iiuKJ2a@msg.df7cb.de> (raw)
In-Reply-To: <YFqRGvGasd8RyltU@paquier.xyz>
References: <E1lJroH-0006Oz-Gb@gemulon.postgresql.org>
<YFnWBYinNf1s0Y6v@msg.df7cb.de>
<YFqRGvGasd8RyltU@paquier.xyz>
Re: Michael Paquier
> So you basically mimicked the makefile rule that this commit removed
> into your own test suite. Reverting the change does not really help,
> because we'd be back to square one where there would be problems in
> parallel runs for developers. Saying that, I would not mind adding an
> option to pg_regress to control if this cleanup code is triggered or
> not, say something like --no-tablespace-cleanup? Then, you could just
> pass down the option by yourself before creating your tablespace path
> as you wish.
I don't think adding more snowflake code just for this use case makes
sense, so I can stick to my workaround.
I just wanted to point out that the only thing preventing the core
testsuite from being run as a true client app is this tablespace
thing, which might be a worthwhile fix on its own.
Maybe creating the tablespace directory from within the testsuite
would suffice?
CREATE TABLE foo (t text);
COPY foo FROM PROGRAM 'mkdir @testtablespace@';
CREATE TABLESPACE regress_tblspace LOCATION '@testtablespace@';
Christoph
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: myon@debian.org, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
In-Reply-To: <YFsMzeLE9iiuKJ2a@msg.df7cb.de>
References: <E1lJroH-0006Oz-Gb@gemulon.postgresql.org> <YFnWBYinNf1s0Y6v@msg.df7cb.de> <YFqRGvGasd8RyltU@paquier.xyz> <YFsMzeLE9iiuKJ2a@msg.df7cb.de>
* 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