Re: [HACKERS] possibility to specify template database for pg_regress

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: [HACKERS] possibility to specify template database for pg_regress
Дата
Msg-id CAFj8pRD0Tv779DZcOAF97e=GLeKV8PH3uKKRH+V26droJpR0_Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] possibility to specify template database for pg_regress  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers


2017-02-14 3:50 GMT+01:00 Andres Freund <andres@anarazel.de>:
On 2017-02-14 11:46:52 +0900, Michael Paquier wrote:
> > I still fail to see why --use-existing as suggested in
> > https://www.postgresql.org/message-id/20170208002900.vkldujzfkwbvqqq7@alap3.anarazel.de
> > isn't sufficient.
>
> Some tests create objects without removing them, meaning that
> continuous runs would fail with only --use-existing. This patch brings
> value in such cases.

You can trivially script the CREATE/DROP DB outside with
--use-existing. Which seems a lot more flexible than adding more and
more options to pg_regress.

Using template is natural and very simply solution - more it doesn't need any outer scripts - so infrastructure for test can be pretty simply in this case.

Regards

Pavel

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: [HACKERS] parallelize queries containing subplans
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write