Re: connect postgresql to a different cluster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 7, 2015 at 9:27 AM, Zoltan Szecsei <zoltans@xxxxxxxxxxxxxx> 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.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux