Re: fork/exec patch: pre-CreateProcess finalization

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: fork/exec patch: pre-CreateProcess finalization
Дата
Msg-id 18180.1073609112@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: fork/exec patch: pre-CreateProcess finalization  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: fork/exec patch: pre-CreateProcess finalization
Re: fork/exec patch: pre-CreateProcess finalization
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> My guess is that this used to proc_exit the postgres backend, but now
> proc_exits the postmaster, but that is only a guess.

No.  This is post-fork (and had better remain so).  The change causes
the sub-postmaster that has just finished handling a cancel request
to exit with nonzero status, which the postmaster then interprets
(correctly) as a child process crash.

BTW, how are we going to do cancels in Windows-land?  The sub-postmaster
isn't gonna have access to the postmaster's list of child PIDs and
cancel keys ...

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: fork/exec patch: pre-CreateProcess finalization
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: fork/exec patch: pre-CreateProcess finalization