Re: Moving PostgreSQL data directory on Windows

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Moving PostgreSQL data directory on Windows
Дата
Msg-id 87irsojdx4.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Moving PostgreSQL data directory on Windows  (Ottó Havasvölgyi <havasvolgyi.otto@gmail.com>)
Ответы Re: Moving PostgreSQL data directory on Windows  (Doug McNaught <doug@mcnaught.org>)
Список pgsql-general
Ottó Havasvölgyi <havasvolgyi.otto@gmail.com> writes:

> Hello,
>
> I would like to move the data directory to another location. I have done this:
> 1. Stop PostgreSQL
> 2. Move data directory
> 3. Create a PGDATA env. variable to the new location
> 4. Start PostgreSQL
>
> And it cannot start, because it cannot find postgresql.conf. (in Event log)
> What should I do now?
>

Dumb question, but are you sure you exported the PGDATA variable?  Is
it pointing to the directory that actually contains postgresql.conf?

If you still have problems, post the exact error message that appears
in the logs.

-Doug

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem with restoring database from 7.3.1 to 8.0.1
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Moving PostgreSQL data directory on Windows