Hello,
This is a way that would solve bug #17698[1]. It just reuses the same
handler as SIGINT (with a function rename).
This patch works best if it is combined with my previous submission[2].
I can rebase that submission if and when this patch is pulled in.
[1]: https://www.postgresql.org/message-id/17698-58a6ab8caec496b0%40postgresql.org
[2]: https://www.postgresql.org/message-id/CSSWBAX56CVY.291H6ZNNHK7EO%40c3po
--
Tristan Partin
Neon (https://neon.tech)