Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
Дата
Msg-id YKMJ0Ri2B1yysTXC@paquier.xyz
обсуждение исходный текст
Ответ на Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
Список pgsql-committers
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

Вложения

В списке pgsql-committers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Fix typo and outdated information in README.barrier
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres