Allow SIGINT to cancel psql database reconnections.
Robert Haas <rhaas@postgresql.org>
Allow SIGINT to cancel psql database reconnections. After installing the SIGINT handler in psql, SIGINT can no longer cancel database reconnections. For instance, if the user starts a reconnection and then needs to do some form of interaction (ie psql is polling), there is no way to cancel the reconnection process currently. Use PQconnectStartParams() in order to insert a cancel_pressed check into the polling loop. Tristan Partin, reviewed by Gurjeet Singh, Heikki Linnakangas, Jelte Fennema-Nio, and me. Discussion: http://postgr.es/m/D08WWCPVHKHN.3QELIKZJ2D9RZ@neon.tech
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/command.c | modified | +71 −1 |
Discussion
- psql not responding to SIGINT upon db reconnection 43 messages · 2023-07-24 → 2024-04-04