Re: kevent latch paths don't handle postmaster death well

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: kevent latch paths don't handle postmaster death well
Date: 2020-10-14 22:18:53
Message-ID: 3636130.1602713933@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Munro <thomas(dot)munro(at)gmail(dot)com> writes:
> On Thu, Oct 15, 2020 at 8:40 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2020-10-14 22:50:18 Re: kevent latch paths don't handle postmaster death well
Previous Message Thomas Munro 2020-10-14 22:10:28 Re: kevent latch paths don't handle postmaster death well