Re: kevent latch paths don't handle postmaster death well - Mailing list pgsql-hackers

From Tom Lane
Subject Re: kevent latch paths don't handle postmaster death well
Date
Msg-id 3636130.1602713933@sss.pgh.pa.us
Whole thread Raw
In response to Re: kevent latch paths don't handle postmaster death well  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: kevent latch paths don't handle postmaster death well  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Thu, Oct 15, 2020 at 8:40 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Seems like having that be per-WaitEventSet state is also not a great
>> idea --- if we detect PM death while waiting on one WES, and then
>> wait on another one, it won't work.  A plain process-wide static
>> variable would be a better way I bet.

> 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.

Oh, OK.  I confirm this makes the kqueue path work like the EPOLL and POLL
paths.  (I can't test the WIN32 path.)

            regards, tom lane



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: kevent latch paths don't handle postmaster death well
Next
From: Thomas Munro
Date:
Subject: Re: kevent latch paths don't handle postmaster death well