Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore

From: "Jelte Fennema-Nio" <postgres(at)jeltef(dot)nl>
To: "Anthonin Bonnefoy" <anthonin(dot)bonnefoy(at)datadoghq(dot)com>
Cc: "Heikki Linnakangas" <hlinnaka(at)iki(dot)fi>, "PostgreSQL Hackers" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>, "Jacob Champion" <jacob(dot)champion(at)enterprisedb(dot)com>
Subject: Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore
Date: 2026-07-13 21:45:49
Message-ID: DJXRTV8UN52B.25OO9PU7CWMCF@jeltef.nl
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon Jul 13, 2026 at 11:17 AM CEST, Anthonin Bonnefoy wrote:
> Maybe it would be better to keep the old behavior and only write the
> cancel_sent_msg after the cancel request was sent?

Yeah makes sense. Reverted that change back now.

Attachment Content-Type Size
v11-0001-psql-Replace-cancel_pressed-with-CancelRequested.patch text/x-patch 21.9 KB
v11-0002-fe_utils-Simplify-cancel-logic-in-wait_on_slots.patch text/x-patch 7.5 KB
v11-0003-Move-Windows-pthread-compatibility-functions-to-.patch text/x-patch 2.8 KB
v11-0004-Don-t-use-deprecated-and-insecure-PQcancel-psql-.patch text/x-patch 42.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Enrique Sánchez 2026-07-13 21:52:39 Re: Extended statistics improvement: multi-column MCV missing values
Previous Message Robert Haas 2026-07-13 21:42:46 Re: incremental backup issue