Re: Moving database cluster

Поиск
Список
Период
Сортировка
От Joshua J. Kugler
Тема Re: Moving database cluster
Дата
Msg-id 201001141147.58876.joshua@eeinternet.com
обсуждение исходный текст
Ответ на Moving database cluster  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
Ответы Re: Moving database cluster  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
Список 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 по дате отправления:

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Moving database cluster
Следующее
От: "Fernando Hevia"
Дата:
Сообщение: Re: Moving database cluster