Re: [HACKERS] Function to kill backend

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Function to kill backend
Дата
Msg-id 10282.1090879101@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Function to kill backend  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: [HACKERS] Function to kill backend  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Oliver Jowett <oliver@opencloud.com> writes:
> Tom Lane wrote:
>> So what you'd basically need is a separate signal to trigger that sort
>> of exit, which would be easy ... if we had any spare signal numbers.

> What about multiplexing it onto an existing signal? e.g. set a
> shared-mem flag saying "exit after cancel" then send SIGINT?

Possible, but then the *only* way to get the behavior is by using the
backend function --- you couldn't use dear old kill(1) to do it
manually.  It'd be better if it mapped to a signal.

            regards, tom lane

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: [HACKERS] Function to kill backend
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: win32 version info