Creating new cluster by copying directory?

Поиск
Список
Период
Сортировка
От Wells Oliver
Тема Creating new cluster by copying directory?
Дата
Msg-id CAOC+FBWPBS1_nH4mTcC9qr_c6Rr410d=LR6L9LRLnDDS=zz68A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Creating new cluster by copying directory?  ("Gilberto Castillo" <gilberto.castillo@etecsa.cu>)
Список 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?

--
Wells Oliver
wellsoliver@gmail.com

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

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: Building an extension for a different version of Postgres
Следующее
От: "Gilberto Castillo"
Дата:
Сообщение: Re: Creating new cluster by copying directory?