Re: Creating new cluster by copying directory?

Поиск
Список
Период
Сортировка
От Gilberto Castillo
Тема Re: Creating new cluster by copying directory?
Дата
Msg-id 53809.192.168.207.54.1373575311.squirrel@webmail.etecsa.cu
обсуждение исходный текст
Ответ на Creating new cluster by copying directory?  (Wells Oliver <wellsoliver@gmail.com>)
Ответы Re: Creating new cluster by copying directory?  (Wells Oliver <wellsoliver@gmail.com>)
Список pgsql-admin

> All: it would take ~4 hours to pg_restore a backup. I want to quickly
> create a duplicate cluster (for testing). My idea:
>
> 1. pg_ctlcreatecluster 9.1 test
> 2. rm /var/lib/postgresql/9.1/test/*
> 2. cp /var/lib/postgresql/9.1/main /var/lib/postgresql/9.1/test
> 3. pg_ctlcluster 9.1 test start
>
> Is this viable? If not, is there another way to create a duplicate cluster
> in a timely fashion?

Test Repmgr works with the same philosophy. ;-)


Saludos,
Gilberto Castillo
La Habana, Cuba
---
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com>, <http://www.viruslist.com>

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

Предыдущее
От: Wells Oliver
Дата:
Сообщение: Creating new cluster by copying directory?
Следующее
От: Wells Oliver
Дата:
Сообщение: Re: Creating new cluster by copying directory?