Re: Moving database cluster - Mailing list pgsql-general

From Joshua J. Kugler
Subject Re: Moving database cluster
Date
Msg-id 201001141147.58876.joshua@eeinternet.com
Whole thread Raw
In response to Moving database cluster  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
Responses Re: Moving database cluster  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
List pgsql-general
On Thursday 14 January 2010, Fernando Hevia elucidated thus:
> An Ubuntu install creates a postgres cluster automatically on
> /var/lib/postgresql/8.4/main
> Whats the best procedure for moving this cluster to an other
> location? Should I just rerun initdb? What happens then with the
> default cluster or how could I delete it?

The easiest way is to shut down Pg, move the 'main' directory somewhere
else, and then point a symlink to the new location.

j

--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0x14EA086E

pgsql-general by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Moving database cluster
Next
From: "Fernando Hevia"
Date:
Subject: Re: Moving database cluster