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 1rkiPF-00Enbh-S1 for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2024 10:33:51 +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 1rkiPD-00GYeH-4u for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2024 10:33:47 +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 1rkiPC-00GYe0-I5 for pgsql-hackers@lists.postgresql.org; Thu, 14 Mar 2024 10:33:47 +0000 Received: from wfhigh6-smtp.messagingengine.com ([64.147.123.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rkiP4-004RZs-51 for pgsql-hackers@lists.postgresql.org; Thu, 14 Mar 2024 10:33:45 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id 9E42D18000B4; Thu, 14 Mar 2024 06:33:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 14 Mar 2024 06:33:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1710412415; x= 1710498815; bh=qB6gJtR8t4b2V2M6NQ9lGaKdnOlEvY+Z/LsloBdpmPQ=; b=n x5Wu0y23A5IEf15Ir6em2Y4OKtcJiM7tjpEbKLgTujIeiN7k86EhrJkGbIMfnxxS KvY8FOoTF8ADPo59kviZljYW8lDtIEXlKRrHZyVs21sTGc1PavQmXn5rw0jj9GA6 C5OGkVjJQgr7d4njIoCNtaIgnsOE6UJJSIyL+yzrX2iBZe33zaEm8Sp2IBRbuB5X EdZGLhVdP1i6h8P/hyBurQTXSnuoO8CCwu3SktnYROJotjmPeBl9GoIrCHYB4Aeg IGtBb8lr+qwkz537Xer5fscmSVYtMOjvX8r+ieZAOSQkvuhWqNZUtkWBQVjLjHwk 2uUAbAL53M16RLQL4iq5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeejgdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Mar 2024 06:33:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1710412410; bh=1F3UaFfxcP2XsgbbIw2Sci2vFOKNHutomHu/FN9di+8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=SCK489LqNi+MZYxyC5IYe8LQ+vsLpCAhHiLxnh2fqQnXGQRh+bWnFaz6/qbo7dQGg yyS76Om5ktEOX0E8dHNRHFK4pvFYC0pStejbPk9z+8cD7SL8Lb8bS5aQRzxCrZq9sN lTykh2RxeMX1pHBth2Twp4g2tFDUNOoXkhz43Elbiwe+f524MSzRStt0b+gxAF0stn gndw1Dl+oW16UbZrKGdqDI7P4Bhou5eZuwVq3i1rudW6tQkydggmL0fIK998sOO8x/ D6NBskbjlOVEdVJSRpyrXfHL/0Rr6OPaDBtVBG7NC/jzb997D8hxP8daUSIV6vHL/I c0SRheMyCrzBA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 21F76CD5; Thu, 14 Mar 2024 11:33:30 +0100 (CET) Date: Thu, 14 Mar 2024 11:33:30 +0100 From: Alvaro Herrera To: Jelte Fennema-Nio Cc: Jacob Champion , Tom Lane , Denis Laxalde , vignesh C , Thomas Munro , Greg Stark , "Gregory Stark (as CFM)" , Jelte Fennema , Daniel Gustafsson , Peter Eisentraut , Andres Freund , Justin Pryzby , Robert Haas , "pgsql-hackers@lists.postgresql.org" Subject: Re: [EXTERNAL] Re: Add non-blocking version of PQcancel Message-ID: <202403141033.slawmavaxujy@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Mar-14, Jelte Fennema-Nio wrote: > On Wed, 13 Mar 2024 at 20:08, Jacob Champion > wrote: > > I hit this on my machine. With the attached diff I can reproduce > > constantly (including with the most recent test patch); I think the > > cancel must be arriving between the bind/execute steps? > > Nice find! Your explanation makes total sense. Attached a patchset > that fixes/works around this issue by using the simple query protocol > in the cancel test. Hmm, isn't this basically saying that we're giving up on reliably canceling queries altogether? I mean, maybe we'd like to instead fix the bug about canceling queries in extended query protocol ... Isn't that something you're worried about? -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "World domination is proceeding according to plan" (Andrew Morton)