pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jacob Champion <jacob.champion@enterprisedb.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Subject: Re: Make query cancellation keys longer
Date: Thu, 05 Sep 2024 12:21:29 -0400
Message-ID: <1995353.1725553289@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOYmi+=yhDxKWoo8eL=XGmsRX86tsxrw1yNr3sFfuchFcd8BRQ@mail.gmail.com>
References: <508d0505-8b7a-4864-a681-e7e5edfe32aa@iki.fi>
	<CAGECzQSMF7qUF7WTVcjk6qVOz=3du6naLVXRKnZ9AUtM9kQ31w@mail.gmail.com>
	<CAGECzQSGzRE9eF=twhDgDXGKQVzrx=WhhVPEUmbQoDsHAVKQkg@mail.gmail.com>
	<CAGECzQTjFAz=OErVJbH8kbdVze_rnXeufGSbNKw+mpzOEWe8cw@mail.gmail.com>
	<02a4eed2-98f0-4796-9d4f-12128ff44fe0@iki.fi>
	<CA+TgmoZQWXBBxoRrjb-+Dz9yxipDP+55hNVWuc_cuXH0cpDayw@mail.gmail.com>
	<c6ed087e-1b41-4b06-9f7e-350acb887f83@iki.fi>
	<CAGECzQQ2osT_XMpByXELiYwxMmd4EV5SPF+n0azCEiVvaRVcjw@mail.gmail.com>
	<27d936fd-3e1b-422e-8a9b-d0543a22b3dc@iki.fi>
	<3dceed41-7624-426c-b464-f47b4acb0c8e@iki.fi>
	<7b86da3b-9356-4e50-aa1b-56570825e234@iki.fi>
	<CAOYmi+=yhDxKWoo8eL=XGmsRX86tsxrw1yNr3sFfuchFcd8BRQ@mail.gmail.com>

Jacob Champion <jacob.champion@enterprisedb.com> writes:
> Has there been any work/discussion around not sending the cancel key
> in plaintext from psql? It's not a prerequisite or anything (the
> longer length is a clear improvement either way), but it seems odd
> that this longer "secret" is still just going to be exposed on the
> wire when you press Ctrl+C.

Wasn't this already addressed in v17, by

Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
2024-03-12 [61461a300] libpq: Add encrypted and non-blocking query cancellation

?  Perhaps we need to run around and make sure none of our standard
clients use the old API anymore, but the libpq infrastructure is
there already.

			regards, tom lane





view thread (40+ messages)  latest in thread

Message-ID: <1995353.1725553289@sss.pgh.pa.us>
Permalink:  ../1995353.1725553289@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1995353.1725553289@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jacob.champion@enterprisedb.com, hlinnaka@iki.fi, postgres@jeltef.nl, thomas.munro@gmail.com, robertmhaas@gmail.com
  Subject: Re: Make query cancellation keys longer
  In-Reply-To: <1995353.1725553289@sss.pgh.pa.us>
  References: <508d0505-8b7a-4864-a681-e7e5edfe32aa@iki.fi> <CAGECzQSMF7qUF7WTVcjk6qVOz=3du6naLVXRKnZ9AUtM9kQ31w@mail.gmail.com> <CAGECzQSGzRE9eF=twhDgDXGKQVzrx=WhhVPEUmbQoDsHAVKQkg@mail.gmail.com> <CAGECzQTjFAz=OErVJbH8kbdVze_rnXeufGSbNKw+mpzOEWe8cw@mail.gmail.com> <02a4eed2-98f0-4796-9d4f-12128ff44fe0@iki.fi> <CA+TgmoZQWXBBxoRrjb-+Dz9yxipDP+55hNVWuc_cuXH0cpDayw@mail.gmail.com> <c6ed087e-1b41-4b06-9f7e-350acb887f83@iki.fi> <CAGECzQQ2osT_XMpByXELiYwxMmd4EV5SPF+n0azCEiVvaRVcjw@mail.gmail.com> <27d936fd-3e1b-422e-8a9b-d0543a22b3dc@iki.fi> <3dceed41-7624-426c-b464-f47b4acb0c8e@iki.fi> <7b86da3b-9356-4e50-aa1b-56570825e234@iki.fi> <CAOYmi+=yhDxKWoo8eL=XGmsRX86tsxrw1yNr3sFfuchFcd8BRQ@mail.gmail.com> <1995353.1725553289@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox