Re: common signal handler protection

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: common signal handler protection
Дата
Msg-id 20231121224006.GA3747740@nathanxps13
обсуждение исходный текст
Ответ на common signal handler protection  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: common signal handler protection  (Nathan Bossart <nathandbossart@gmail.com>)
Список pgsql-hackers
On Tue, Nov 21, 2023 at 03:20:08PM -0600, Nathan Bossart wrote:
> +#ifdef NSIG
> +#define PG_NSIG (NSIG)
> +#else
> +#define PG_NSIG (64)            /* XXX: wild guess */
> +#endif

> +    Assert(signo < PG_NSIG);

cfbot seems unhappy with this on Windows.  IIUC we need to use
PG_SIGNAL_COUNT there instead, but I'd like to find a way to have just one
macro for all platforms.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Changing baserel to foreignrel in postgres_fdw functions
Следующее
От: Ivan Trofimov
Дата:
Сообщение: WIP: libpq: add a possibility to not send D(escribe) when executing a prepared statement