Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers <pgsql-committers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
Date: 2021-04-16 04:03:36
Message-ID: CA+hUKGKNgaQuOg1OaeYDBVEQ-1myNcdhA5TFaMCSXXHrwT-JkA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Thu, Apr 15, 2021 at 10:50 PM Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
> On Thu, Apr 15, 2021 at 2:26 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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 Content-Type Size
0001-Make-postmaster-s-SIGURG-setup-more-consistent.patch text/x-patch 2.0 KB

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-04-16 07:57:49 pgsql: doc: Fix typo in example query of SQL/JSON
Previous Message Amit Kapila 2021-04-16 02:18:12 pgsql: Add information of total data processed to replication slot stat