From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
Date: Fri, 16 Apr 2021 08:46:52 -0400
Message-ID: <4006115.1618577212@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGKNgaQuOg1OaeYDBVEQ-1myNcdhA5TFaMCSXXHrwT-JkA@mail.gmail.com>
References: <E1lGXKf-0007dm-Ix@gemulon.postgresql.org>
<3739816.1618453573@sss.pgh.pa.us>
<CA+hUKG++4qXP3oWfN5MT58TD-NMJuzmseRFE-yPc_CeJiJMVyg@mail.gmail.com>
<CA+hUKGKNgaQuOg1OaeYDBVEQ-1myNcdhA5TFaMCSXXHrwT-JkA@mail.gmail.com>
Thomas Munro <thomas.munro@gmail.com> writes:
> Here's a patch to change that. But... on second thoughts, and after
> coming up with a commit message to explain the change, I'm not 100%
> convinced it's worth committing. You can't get SIGURG without
> explicitly asking for it (by setting maybe_sleeping), which makes it a
> bit more like SIGALRM than SIGUSR2. I don't feel very strongly about
> this though. What do you think?
Hmm, yeah, after looking more closely at InitializeLatchSupport I agree.
There's so much platform variability in whether we use the signal handler
at all that it seems best to keep it SIGIGN'd until we reach that code.
It might be good to extend the comment in postmaster.c though, perhaps
along the lines of "Ignore SIGURG for now. Child processes may change
this (see InitializeLatchSupport), but they will not receive any such
signals until they wait on a latch".
Is it really necessary to mess with UnBlockSig?
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com
Subject: Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
In-Reply-To: <4006115.1618577212@sss.pgh.pa.us>
References: <E1lGXKf-0007dm-Ix@gemulon.postgresql.org> <3739816.1618453573@sss.pgh.pa.us> <CA+hUKG++4qXP3oWfN5MT58TD-NMJuzmseRFE-yPc_CeJiJMVyg@mail.gmail.com> <CA+hUKGKNgaQuOg1OaeYDBVEQ-1myNcdhA5TFaMCSXXHrwT-JkA@mail.gmail.com> <4006115.1618577212@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