Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore
Heikki Linnakangas <hlinnaka@iki.fi>
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Alvaro Herrera <alvherre@alvh.no-ip.org>,
Jacob Champion <jacob.champion@enterprisedb.com>
Date: 2026-07-04T22:57:53Z
Lists: pgsql-hackers
Attachments
- 0001-Add-comment-to-describe-the-various-frontend-cancel-.patch (text/x-patch) patch 0001
On 04/07/2026 01:28, Jelte Fennema-Nio wrote: >> The comments you added in your patches help a lot, explaining the three >> different ways that cancellation can be handled, thanks for that. > > Yeah, I think I extracted just the comment in fe_utils/cancel.c to a separate patch, and modified it to reflect the reality before the rest of the changes. I'm inclined to commit that now to document the status quo. That'll also make it easier to see what the other patches change. Does the attached look correct to you? - Heikki