Re: Changing/Specifying Data Dir to postmaster Service

Поиск
Список
Период
Сортировка
От Mike G
Тема Re: Changing/Specifying Data Dir to postmaster Service
Дата
Msg-id 1093577589.3872.3.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Changing/Specifying Data Dir to postmaster Service  (CSN <cool_screen_name90001@yahoo.com>)
Ответы Re: Changing/Specifying Data Dir to postmaster Service  (CSN <cool_screen_name90001@yahoo.com>)
Список pgsql-cygwin
Hello,

You need to do an initdb and specify the directory you want to install /
start it in.  Of course you will have to backup your data first and then
restore the dump(s) after the initdb.

Then you must also remove the postmaster service and re-install using
the new path etc.

HTH.

Mike


On Thu, 2004-08-26 at 20:24, CSN wrote:
> I installed the postmaster service using:
>
> cygrunsrv --install postmaster --path
> /usr/bin/postmaster --args "-D /var/postgresql/data
> -i" --dep cygserver --termsig INT --user postgres
> --shutdown
>
> How can I start it using another data directory?
>
> Thanks,
> CSN
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


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

Предыдущее
От: CSN
Дата:
Сообщение: Changing/Specifying Data Dir to postmaster Service
Следующее
От: CSN
Дата:
Сообщение: Re: Changing/Specifying Data Dir to postmaster Service