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

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
Дата
Msg-id YFsMzeLE9iiuKJ2a@msg.df7cb.de
обсуждение исходный текст
Ответ на Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
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



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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Nicer error when connecting to standby with hot_standby=off
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Replication slot stats misgivings