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

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: 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-06 16:27:56
Message-ID: bbb929b1-76cd-4d25-bf67-0f41af9f7283@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 06/07/2026 13:28, Jelte Fennema-Nio wrote:
> On Sun, 5 Jul 2026 at 00:58, Heikki Linnakangas <hlinnaka(at)iki(dot)fi> wrote:
>> 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?
>
> Sounds good and yeah looks correct.

Thanks, pushed that part. Attached are the remaining patches, rebased
over that.

- Heikki

Attachment Content-Type Size
v8.1-0001-psql-Replace-cancel_pressed-with-CancelRequeste.patch text/x-patch 21.8 KB
v8.1-0002-fe_utils-Simplify-cancel-logic-in-wait_on_slots.patch text/x-patch 2.2 KB
v8.1-0003-Move-Windows-pthread-compatibility-functions-to.patch text/x-patch 2.8 KB
v8.1-0004-Don-t-use-deprecated-and-insecure-PQcancel-psql.patch text/x-patch 44.2 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tristan Partin 2026-07-06 16:34:58 Re: Add malloc attribute to memory allocation functions
Previous Message ZizhuanLiu X-MAN 2026-07-06 16:09:36 Re: support create index on virtual generated column.