Re: pgsql: Use SIGURG rather than SIGUSR1 for latches. - Mailing list pgsql-committers

From Thomas Munro
Subject Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
Date
Msg-id CA+hUKGKNgaQuOg1OaeYDBVEQ-1myNcdhA5TFaMCSXXHrwT-JkA@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
List pgsql-committers
On Thu, Apr 15, 2021 at 10:50 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> On Thu, Apr 15, 2021 at 2:26 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > It's possible that that argument doesn't apply to the way SIGURG is used
> > in this patch, but I don't see a good reason to ignore the convention of
> > setting up the handler this way.
>
> Yeah, will fix.  I don't think there is a bug here given the way
> latches use shared memory flags, but it might as well be consistent.

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?

Attachment

pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Add information of total data processed to replication slot stat
Next
From: Michael Paquier
Date:
Subject: pgsql: doc: Fix typo in example query of SQL/JSON