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 1tPoqM-00FXyG-1D for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Dec 2024 20:15:58 +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 1tPoqL-00FY7b-96 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Dec 2024 20:15:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tPoqK-00FY7R-V2 for pgsql-hackers@lists.postgresql.org; Mon, 23 Dec 2024 20:15:56 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tPoqJ-000ETB-1E for pgsql-hackers@lists.postgresql.org; Mon, 23 Dec 2024 20:15:55 +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 4BNKFe5C1479862; Mon, 23 Dec 2024 15:15:42 -0500 From: Tom Lane To: Jelte Fennema-Nio cc: Alexander Lakhin , Andres Freund , Alvaro Herrera , Noah Misch , Jacob Champion , Denis Laxalde , vignesh C , Thomas Munro , Greg Stark , "Gregory Stark (as CFM)" , Daniel Gustafsson , Peter Eisentraut , Justin Pryzby , Robert Haas , PostgreSQL Hackers , Etsuro Fujita Subject: Re: [EXTERNAL] Re: Add non-blocking version of PQcancel In-reply-to: References: <202407221126.vyw5q3h4nyoh@alvherre.pgsql> <5ea25e4d-1ee2-b9bf-7806-119ffa658826@gmail.com> <578934.1725045685@sss.pgh.pa.us> <584811.1725048717@sss.pgh.pa.us> <591893.1725051309@sss.pgh.pa.us> <37c3bd11-7321-fe58-99ca-bc15a67c08cc@gmail.com> <2947163.1731810791@sss.pgh.pa.us> <8f280cbd-8450-87ea-f0f7-ab4932af5750@gmail.com> <321476.1732152654@sss.pgh.pa.us> <480238.1732235854@sss.pgh.pa.us> Comments: In-reply-to Jelte Fennema-Nio message dated "Fri, 22 Nov 2024 10:19:16 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1479860.1734984940.1@sss.pgh.pa.us> Date: Mon, 23 Dec 2024 15:15:40 -0500 Message-ID: <1479861.1734984940@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jelte Fennema-Nio writes: > On Fri, 22 Nov 2024 at 01:37, Tom Lane wrote: >> How would we do that? libpqsrv_cancel is not chartered to wait around >> for the results of the cancel, and I'm not even sure that it could >> know what to check for. > Ah yeah, you're right. I got confused by the two timeouts (the one to > wait for the response of the cancel request itself, and the one to > wait for the running query to actually be cancelled). Not having heard any better ideas, I pushed that to HEAD and v17 (with the renaming you suggested). regards, tom lane