Re: psql not responding to SIGINT upon db reconnection
От
Heikki Linnakangas
Тема
Re: psql not responding to SIGINT upon db reconnection
Дата
Msg-id
5e28b89f-0033-4e42-8184-b71b731c1aa2@iki.fi
Ответ на
Re: psql not responding to SIGINT upon db reconnection (Tristan Partin)
Список
Дерево обсуждения
psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@neon.tech>
Re: psql not responding to SIGINT upon db reconnection Gurjeet Singh <gurjeet@singh.im>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@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 "Tristan Partin" <tristan@neon.tech>
Re: psql not responding to SIGINT upon db reconnection Tom Lane <tgl@sss.pgh.pa.us>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@neon.tech>
Re: psql not responding to SIGINT upon db reconnection Shlok Kyal <shlok.kyal.oss@gmail.com>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@neon.tech>
Re: psql not responding to SIGINT upon db reconnection Heikki Linnakangas <hlinnaka@iki.fi>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@neon.tech>
Re: psql not responding to SIGINT upon db reconnection Heikki Linnakangas <hlinnaka@iki.fi>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@neon.tech>
Re: psql not responding to SIGINT upon db reconnection Heikki Linnakangas <hlinnaka@iki.fi>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@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>
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>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@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 Jelte Fennema-Nio <postgres@jeltef.nl>
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>
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>
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>
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>
Re: psql not responding to SIGINT upon db reconnection Jelte Fennema-Nio <postgres@jeltef.nl>
Re: psql not responding to SIGINT upon db reconnection Tom Lane <tgl@sss.pgh.pa.us>
Re: psql not responding to SIGINT upon db reconnection Jelte Fennema-Nio <postgres@jeltef.nl>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@neon.tech>
Re: psql not responding to SIGINT upon db reconnection Jelte Fennema-Nio <postgres@jeltef.nl>
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>
Re: psql not responding to SIGINT upon db reconnection Jelte Fennema-Nio <postgres@jeltef.nl>
Re: psql not responding to SIGINT upon db reconnection Robert Haas <robertmhaas@gmail.com>
Re: psql not responding to SIGINT upon db reconnection "Tristan Partin" <tristan@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 "Tristan Partin" <tristan@neon.tech>
Re: psql not responding to SIGINT upon db reconnection Jelte Fennema-Nio <postgres@jeltef.nl>
On 06/11/2023 19:16, Tristan Partin wrote: >>> That sounds like a much better solution. Attached you will find a v4 >>> that implements your suggestion. Please let me know if there is >>> something that I missed. I can confirm that the patch works. This patch is missing a select(). It will busy loop until the connection is established or cancelled. Shouldn't we also clear CancelRequested after we have cancelled the attempt? Otherwise, any subsequent attempts will immediately fail too. Should we use 'cancel_pressed' here rather than CancelRequested? To be honest, I don't understand the difference, so that's a genuine question. There was an attempt at unifying them in the past but it was reverted in commit 5d43c3c54d. -- Heikki Linnakangas Neon (https://neon.tech)
В списке pgsql-hackers по дате отправления
От: Heikki Linnakangas
Дата:
От: Tom Lane
Дата: