Re: psql not responding to SIGINT upon db reconnection

Поиск
Список
Период
Сортировка
От Tristan Partin
Тема Re: psql not responding to SIGINT upon db reconnection
Дата
Msg-id CXGM82ZEGMR2.8EX2V7UBFIK3@neon.tech
обсуждение исходный текст
Ответ на Re: psql not responding to SIGINT upon db reconnection  ("Tristan Partin" <tristan@neon.tech>)
Ответы Re: psql not responding to SIGINT upon db reconnection  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Wed Nov 29, 2023 at 11:48 AM CST, Tristan Partin wrote:
> I am not completely in love with the code I have written. Lots of
> conditional compilation which makes it hard to read. Looking forward to
> another round of review to see what y'all think.

Ok. Here is a patch which just uses select(2) with a timeout of 1s or
pselect(2) if it is available. I also moved the state machine processing
into its own function.

Thanks for your comments thus far.

--
Tristan Partin
Neon (https://neon.tech)

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: backtrace_on_internal_error
Следующее
От: "Tristan Partin"
Дата:
Сообщение: Remove WIN32 conditional compilation from win32common.c