Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Дата
Msg-id 4660.1353513558@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang  (Hari Babu <haribabu.kommi@huawei.com>)
Список pgsql-bugs
Hari Babu <haribabu.kommi@huawei.com> writes:
> I have a query regarding the changing of pmState only incase of SIGTERM but
> not incase of SIGINT.
> Is there any reason to handle like this? or Is it ok to modify the handling
> of pmState in SIGTERM same as SIGINT?

AFAICT the "smart shutdown" code path is okay: it transitions to
PM_WAIT_READONLY state, and then PostmasterStateMachine issues SIGTERM
to the startup process and goes to PM_WAIT_BACKENDS state.  Perhaps this
could be done more clearly but I'm disinclined to mess with it.

            regards, tom lane

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

Предыдущее
От: Hari Babu
Дата:
Сообщение: Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Prepared Statement Name Truncation