Re: Command to reset entire PgSQL cluster?

Поиск
Список
Период
Сортировка
От Felipe Gasper
Тема Re: Command to reset entire PgSQL cluster?
Дата
Msg-id 54DA55AD.5030305@felipegasper.com
обсуждение исходный текст
Ответ на Re: Command to reset entire PgSQL cluster?  (David G Johnston <david.g.johnston@gmail.com>)
Ответы Re: Command to reset entire PgSQL cluster?  (Raymond O'Donnell <rod@iol.ie>)
Re: Command to reset entire PgSQL cluster?  (John R Pierce <pierce@hogranch.com>)
Re: Command to reset entire PgSQL cluster?  (Bill Moran <wmoran@potentialtech.com>)
Список pgsql-general
On 2/10/15 12:57 PM, David G Johnston wrote:
> Felipe Gasper wrote
>> Is there a quick way to reset a PgSQL cluster to its pristine
>> state--i.e., to what initdb gives but preserving configuration
>> customizations?
>
> Not that I am aware of.
>
> If you describe your use-case then meaningful suggestions could be offered.
>

We have a lot of code that tests interaction with a PgSQL cluster on the
same server that has a live production cluster. To keep the testing
environment separate from production, we create a PgSQL cluster in a
temp directory then run tests against that.

This, as you can imagine, is pretty expensive to set up each time …
initdb is not fast! It would be nice if we could just create a single
test PgSQL cluster then wipe it clean at the end of each test.

-FG


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

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: Command to reset entire PgSQL cluster?
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Command to reset entire PgSQL cluster?