Re: kevent latch paths don't handle postmaster death well
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: kevent latch paths don't handle postmaster death well |
| Дата | |
| Msg-id | 3638494.1602717275@sss.pgh.pa.us обсуждение |
| Ответ на | Re: kevent latch paths don't handle postmaster death well (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: kevent latch paths don't handle postmaster death well
|
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> On 2020-10-15 11:10:28 +1300, Thomas Munro wrote:
>> I don't think that's a problem -- the kernel will report the event to
>> each interested kqueue object. The attached fixes the problem for me.
> Will it do so even if the kqueue is created after postmaster death?
I did not try to test it, but there's code that purports to handle that
in latch.c, ~ line 1150, and the behavior it's expecting mostly agrees
with what I read in the macOS kevent man page. One thing I'd suggest
is that EACCES probably needs to be treated as "postmaster already dead",
too, in case the PID is now owned by another user ID.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера