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

From: "Jelte Fennema-Nio" <postgres(at)jeltef(dot)nl>
To: "Heikki Linnakangas" <hlinnaka(at)iki(dot)fi>
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-09 07:47:14
Message-ID: DJTVHMH04281.22G59KIN9HWFX@jeltef.nl
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue Jul 7, 2026 at 9:54 AM CEST, Jelte Fennema-Nio wrote:
> Attached is a new version that improves the
> comment and starts using the same 1 second poll on all platforms.

Rebased on top of latest master (on top of the no more TerminateThread commit)

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirk Roybal 2026-07-09 07:54:24 Re: [PATCH] Add PROMPT_COMMAND and dynamic prompt support to psql
Previous Message Jim Jones 2026-07-09 07:41:57 Re: Truncate logs by max_log_size