Re: connect postgresql to a different cluster - Mailing list pgsql-admin

From David G. Johnston
Subject Re: connect postgresql to a different cluster
Date
Msg-id CAKFQuwapHCDFv8UhKn4WfxMN1xYZsSBxvpNSY5fk_NzeR6XLKw@mail.gmail.com
Whole thread Raw
In response to connect postgresql to a different cluster  (Zoltan Szecsei <zoltans@geograph.co.za>)
List 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 by date:

Previous
From: Zoltan Szecsei
Date:
Subject: connect postgresql to a different cluster
Next
From: "Gilberto Castillo"
Date:
Subject: Re: connect postgresql to a different cluster