From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: kevent latch paths don't handle postmaster death well
Date: Wed, 14 Oct 2020 18:18:53 -0400
Message-ID: <3636130.1602713933@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGJ8aHjyxccsn3z4NOpnWBdfUSmzVPm6uc_B63ODnQvvPA@mail.gmail.com>
References: <3624029.1602701929@sss.pgh.pa.us>
<CA+hUKGKvy_o=gXkbDEnpmJL-PcihAv272v-R+tpX3SdA+NdGVg@mail.gmail.com>
<3625898.1602704431@sss.pgh.pa.us>
<CA+hUKGJ8aHjyxccsn3z4NOpnWBdfUSmzVPm6uc_B63ODnQvvPA@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com, hlinnaka@iki.fi
Subject: Re: kevent latch paths don't handle postmaster death well
In-Reply-To: <3636130.1602713933@sss.pgh.pa.us>
References: <3624029.1602701929@sss.pgh.pa.us> <CA+hUKGKvy_o=gXkbDEnpmJL-PcihAv272v-R+tpX3SdA+NdGVg@mail.gmail.com> <3625898.1602704431@sss.pgh.pa.us> <CA+hUKGJ8aHjyxccsn3z4NOpnWBdfUSmzVPm6uc_B63ODnQvvPA@mail.gmail.com> <3636130.1602713933@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox