Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smFEy-004IjI-7z for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Sep 2024 16:21:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1smFEw-00DOHB-ND for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Sep 2024 16:21:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smFEw-00DOH2-D7 for pgsql-hackers@lists.postgresql.org; Thu, 05 Sep 2024 16:21:46 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smFEu-000JN3-AP for pgsql-hackers@postgresql.org; Thu, 05 Sep 2024 16:21:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 485GLTC51995354; Thu, 5 Sep 2024 12:21:29 -0400 From: Tom Lane To: Jacob Champion cc: Heikki Linnakangas , Jelte Fennema-Nio , pgsql-hackers , Thomas Munro , Robert Haas Subject: Re: Make query cancellation keys longer In-reply-to: References: <508d0505-8b7a-4864-a681-e7e5edfe32aa@iki.fi> <02a4eed2-98f0-4796-9d4f-12128ff44fe0@iki.fi> <27d936fd-3e1b-422e-8a9b-d0543a22b3dc@iki.fi> <3dceed41-7624-426c-b464-f47b4acb0c8e@iki.fi> <7b86da3b-9356-4e50-aa1b-56570825e234@iki.fi> Comments: In-reply-to Jacob Champion message dated "Thu, 05 Sep 2024 08:43:31 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1995352.1725553289.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 05 Sep 2024 12:21:29 -0400 Message-ID: <1995353.1725553289@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jacob Champion 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 2024-03-12 [61461a300] libpq: Add encrypted and non-blocking query cancell= ation ? 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