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 1rTPrp-002mBP-Pz for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jan 2024 17:19:50 +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 1rTPro-000chd-Jj for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jan 2024 17:19:48 +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 1rTPro-000chV-0y for pgsql-hackers@lists.postgresql.org; Fri, 26 Jan 2024 17:19:48 +0000 Received: from fout3-smtp.messagingengine.com ([103.168.172.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rTPrl-003VSi-FS for pgsql-hackers@lists.postgresql.org; Fri, 26 Jan 2024 17:19:46 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id DAE871380081; Fri, 26 Jan 2024 12:19:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 26 Jan 2024 12:19:43 -0500 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=fm3; t=1706289583; x= 1706375983; bh=KUeyb9+AxMRQoMuPP2Dg6KZNCX7bhAwKY83Tu5G9dBc=; b=o eow8hiE+08wRc4hKhYbPFsvL0XrtlqXm6kl8dUXwSU+feeqeYHB0Unjc9y3z2LGb UI5q157DozC7fK/7jyYPL4m9EcgXuKpYHy99sAkyDrY8PzDuGTe3mMbawTQoTX+n b940dwIafzMJpK2KTVQl7Ujqs+L9UpPh1zSkeBFB8BoxjDFAQgkfU47JTFGkxVxs 14Y6TfgXymG0rLPmYLCV6MRMTtNPvSlrhqcTCRr86bO2oFfkR4l9Av5B9CClofSH KFSQwLG7mVYKNzgoqVXV8+U0LiElAGpQ+lurv5AjLYUm2heFg/TAjdGHn3NJfA7C WUeN0zChFmnKsrBmMILJw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeljedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Jan 2024 12:19:42 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1706289581; bh=c9IuBEotYTqvY+Amp5MGFQUKKauEY4h+Y9citmuiyns=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=cX1+mBRyH0W+fJivh/LCI/BLADXUapQTkqtLPeQjfKyqKT80Uyb7gsB7VbbawY/EU f/IwjXE8WOZ1P02w/FfKONHojfgOgfbYziN4vGwlBFFMG0PBwOYhEToO7MXzB7y8cy CxS7FjZZSaGo1jxgUISNjLwfy0mXxy0uivZT/O1UYFcbA3D5h4ZcUrLYTcEX2eeyEJ x/cIBiCpEQIk2kmkkuGMjOAuUT00b0SkC2Nd37fYjIe0Ee/RHazZP2axpCIa+ouIbk +2BQ+6MwtwAfxaup11SxVWCVYeeK8P+Yng7ubx+cJoXwByrP/oKyhvK4LOUMRBV9hE aXh+eqdLQbvhA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 470749B0; Fri, 26 Jan 2024 18:19:41 +0100 (CET) Date: Fri, 26 Jan 2024 18:19:41 +0100 From: Alvaro Herrera To: Jelte Fennema-Nio Cc: vignesh C , Thomas Munro , Denis Laxalde , Greg Stark , Tom Lane , "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: <202401261719.zdvceewzvt24@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-Jan-26, Jelte Fennema-Nio wrote: > Okay I tried doing that. I think the end result is indeed quite nice, > having all the cancellation related functions together in a file. But > it did require making a bunch of static functions in fe-connect > extern, and adding them to libpq-int.h. On one hand that seems fine to > me, on the other maybe that indicates that this cancellation logic > makes sense to be in the same file as the other connection functions > (in a sense, connecting is all that a cancel request does). Yeah, I see that point of view as well. I like the end result; the additional protos in libpq-int.h don't bother me. Does anybody else wants to share their opinion on it? If none, then I'd consider going ahead with this version. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "We’ve narrowed the problem down to the customer’s pants being in a situation of vigorous combustion" (Robert Haas, Postgres expert extraordinaire)