Re: initdb on build machine and moving to production machine

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: initdb on build machine and moving to production machine
Дата
Msg-id Pine.LNX.4.30.0101120007310.1080-100000@peter.localdomain
обсуждение исходный текст
Ответ на initdb on build machine and moving to production machine  (oberpwd@anubis.network.com (Wade D. Oberpriller))
Список pgsql-general
Wade D. Oberpriller writes:

> I want to be able to do an initdb on a build machine and then copy this new
> database to a production machine and run with it. One thing I have noticed is
> that initdb needs an absolute path, so if I copy the database it needs to
> reside in an identical location as where it was initialized.

No.  The path is only used within initdb to find the directory.  It's not
saved anywhere.

> Is there anyway to overcome this, that is can a database be initialized and
> copied to another locationa and still work?

This should work painlessly if both machines are the same platform.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: "Mikheev, Vadim"
Дата:
Сообщение: RE: Re: Loading optimization
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: COPY error: pqReadData() -- backend closed the channel unexpectedly