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

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
Дата
Msg-id CA+hUKGKNgaQuOg1OaeYDBVEQ-1myNcdhA5TFaMCSXXHrwT-JkA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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?

Вложения

В списке pgsql-committers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: pgsql: Add information of total data processed to replication slot stat
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: doc: Fix typo in example query of SQL/JSON