Re: connect postgresql to a different cluster

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: connect postgresql to a different cluster
Дата
Msg-id CAKFQuwapHCDFv8UhKn4WfxMN1xYZsSBxvpNSY5fk_NzeR6XLKw@mail.gmail.com
обсуждение исходный текст
Ответ на connect postgresql to a different cluster  (Zoltan Szecsei <zoltans@geograph.co.za>)
Список pgsql-admin
On Thu, May 7, 2015 at 9:27 AM, Zoltan Szecsei <zoltans@geograph.co.za> wrote:
But maybe there is an elegant way to "import" a cluster?

​It should possible to accomplish your goal without performing "initdb"​ - though you may find it easier to forgo the Ubuntu utilities and just write the necessary pg_ctl commands yourself.  You indeed need to use either "$PGDATA" or explicit command line parameters and just point directly at the cluster data directory that you mounted - with pg_ctl, not initdb.

Whether that is easier than a simple pg_dump/pg_restore ​"import" it up for you to decide.

You might be able to rename things to match the expected structure for the Ubuntu cluster commands.

David J.


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

Предыдущее
От: Zoltan Szecsei
Дата:
Сообщение: connect postgresql to a different cluster
Следующее
От: "Gilberto Castillo"
Дата:
Сообщение: Re: connect postgresql to a different cluster