Re: Shutting down server from a backend process, e.g. walrceiver

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: Shutting down server from a backend process, e.g. walrceiver
Дата
Msg-id AANLkTikqeVeTcPkDekVcnF9r-5TqtBy6tYksQdBri49S@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Shutting down server from a backend process, e.g. walrceiver  (fazool mein <fazoolmein@gmail.com>)
Ответы Re: Shutting down server from a backend process, e.g. walrceiver  (fazool mein <fazoolmein@gmail.com>)
Список pgsql-hackers
On Wed, Sep 22, 2010 at 2:50 AM, fazool mein <fazoolmein@gmail.com> wrote:
> Yes, I'll be modifying the code. In the walreceiver, I used the following to
> send a shutdown to the postmaster:
>
> kill(getppid(), SIGTERM);

You can use the global variable "PostmasterPid" instead of getppid.
There are three types of shutdown. SIGTERM triggers smart shutdown.
Smart shutdown is suitable for your case? If not, you might need to
send SIGINT or SIGQUIT instead.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


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

Предыдущее
От: Itagaki Takahiro
Дата:
Сообщение: Re: Make tuples_per_page pr. table configureable.
Следующее
От: Pei He
Дата:
Сообщение: Re: Get the offset of a tuple inside a table