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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
Дата
Msg-id 3739816.1618453573@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-committers
Thomas Munro <tmunro@postgresql.org> writes:
> Use SIGURG rather than SIGUSR1 for latches.

I notice that postmaster.c still does

#ifdef SIGURG
    pqsignal_pm(SIGURG, SIG_IGN);          /* ignored */
#endif

It appears to me that this should now read

    pqsignal_pm(SIGURG, dummy_handler);    /* unused, reserve for children */

for the reasons explained in the comment for dummy_handler.

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.

            regards, tom lane



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Tweak behavior of pg_dump --extension with configuration tables
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: amcheck: Use correct format placeholder for TOAST chunk numbers