Re: database location question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: database location question
Дата
Msg-id 29342.998403164@sss.pgh.pa.us
обсуждение
Ответ на database location question  (Carolyn Lu Wong <carolyn@greatpacific.com.au>)
Список pgsql-sql
Carolyn Lu Wong <carolyn@greatpacific.com.au> writes:
> I'm using V6.5.3.

You really oughta update ;-)

> Is there a way to move the database to another directory location
> instead in /var/lib/pgsql?

Sure, just shut down the postmaster, physically move the entire data tree
(use 'cp -p -r' or 'tar' or some such), put a symlink to the new place
at /var/lib/pgsql/data, and away you go.  Or forget the symlink and
instead tell the postmaster where the data tree is with a -D switch.
        regards, tom lane


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