From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
Date: Tue, 18 May 2021 09:26:57 +0900
Message-ID: <YKMJ0Ri2B1yysTXC@paquier.xyz> (raw)
In-Reply-To: <2917892.1621288314@sss.pgh.pa.us>
References: <E1lJroH-0006Oz-Gb@gemulon.postgresql.org>
<2854388.1621284789@sss.pgh.pa.us>
<2917892.1621288314@sss.pgh.pa.us>
On Mon, May 17, 2021 at 05:51:54PM -0400, Tom Lane wrote:
> I wrote:
>> I think what we want to do is have this code invoked only in
>> test directories that explicitly ask for it, say with a new
>> "--make-testtablespace" switch for pg_regress.
>
> Say, as attached. (Windows part is untested.)
Thanks. I was going to produce something this morning, but you have
been faster than me.
One thing that's changing in this patch is that testtablespace would
be created even if the input directory does not exist when using
--make-testtablespace-dir. I would have kept the creation of the
tablespace path within convert_sourcefiles_in() for this reason.
Worth noting that snprintf() is used twice instead of once to build
the tablespace path string. The Windows part works correctly.
--
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, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
In-Reply-To: <YKMJ0Ri2B1yysTXC@paquier.xyz>
References: <E1lJroH-0006Oz-Gb@gemulon.postgresql.org> <2854388.1621284789@sss.pgh.pa.us> <2917892.1621288314@sss.pgh.pa.us> <YKMJ0Ri2B1yysTXC@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