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.98.2) (envelope-from ) id 1xBKIP-000000038cI-3DW2 for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Sep 2026 22:58:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xBKIO-0000000Bi4t-20Ah for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Sep 2026 22:58:04 +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.98.2) (envelope-from ) id 1xBKIN-0000000Bi4k-3ykY for pgsql-hackers@lists.postgresql.org; Mon, 28 Sep 2026 22:58:04 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xBKIL-00000001lSo-3u4U for pgsql-hackers@lists.postgresql.org; Mon, 28 Sep 2026 22:58:02 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 83061140007F; Mon, 28 Sep 2026 18:58:00 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Mon, 28 Sep 2026 18:58:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1790636280; x=1790722680; bh=hmaM5+YHVm Um6UvP3IPou7sTKY7V7PjJzC1YbfU/n8k=; b=wSwgjyFAZg14xlXrdA9bYuqygY b4yHRkCdDFsVKYvDHpN1nO5TiQeBtUsE20jNLTQA5XWkyAlSF7Nrm2+lhnULbt0g yaYeTr5F5gvBEVckXoGrug5snPFd86xw1YrAOx44PhbOjr9iWeJszcBOLTBsyzMp 8BYPZY+uYNLCc2/mg3Xd8BCpa66EDWkwtv4mrStFHSWl9qbgbB4xdnpIoyNSFJmv Yv1I47j0OTWf34wQxXYK/AxsXTm+Er8H858tBspyNmJwV3AxlwuJgAuGWWisUdbM F3fgygRKS5vkeJVI6bEmhdEZAr9mrM0bRifU3CM66v0FEk8cNHarVQMs6UtA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1790636280; x=1790722680; bh=hmaM5+YHVmUm6UvP3IPou7sTKY7V7PjJzC1 YbfU/n8k=; b=K3ZvlmW2K5PkaR/jGIjvV9kj2Mjhm7lyFwCqoVDZEYh0U7vNj/k EF21yaRWG2CleMsG5vAJMsEFQE7CkVnuNVpw4aeNN1iWWRb523cOw9tnplBhxY8Q MRKhqFUGT6LQBosEnySzDxP6iFrFnV/9iJnsZcQVF/AWDEY32nTmn7iSNazcIMXE srw/LSYeAOx/fGi6wjWeCUYQJinU6edJY5SJ67Z+e3h5mvluDQf8faUhokN6gnbJ IgiFRe8R5P4ifMkuPJPZsQyHdAGzFyt5u3EmEFM3Foi4PLqDyeuC+clwWM9hVLyQ ZinIB7nw12NaEzI0A7QhlXEkBX31ESbsPww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGilRgeohT6z1ERk3lq0fRFI3O22RskdaZ7yM+7svO0DBkxYtCYWDrjyZp5nxEoIP JKPA3oAgs5637hXDl/Rx0fzWZU6FKid1NAMPnYosX1g79q2XCp+EvBNNh1v3E9wVCw3C0r DYpGoawaolyhadRF1eRXfQMEjWUmIgq1DcIpdMDD9O2+Wsj/+BHqtS4YrfFwce9R6EewRA PA9Ph11ZJKOrOt9B7Xl/Iblg3eTKftlTPi1I69VSye5P9O+vufGeOqdIS7tZ/RhkDQ/1Bj 38yBbggQS2o7iyghZfXPVGkJk7N8EOOc5iBWNzjMZ1E2aQALsk1fwE51Ul0hVIfLVmchRT 9ZyspMzyLy+v+NZAmKyY17m3O8xKMEqajKr8G7iXaRa24JQqX6Kjs8y6RHvsuGC+frJEB0 4dCNuLcNkvvbHeemZ/CsQz3CWX1r8jL9TzSUnpT8w8v3Rtnh1+szch522UiEGkJQagDm0o uvKHTvOqKeyRz9JxCC13VgDJ/LjwvZ+e9HO/WjVIm+MGCyIPeDzJTqe0QiYeBSXLYrjmJX t89fMkA/wOrPEA6xeJOeXqpxhve6PiLhgA2qvG0LxLdhyq/EneTu27Lq7DGNBTEVdjZRrf G4yklHafjktpw26NY5vBObh6PNhdHC0M9J/T525vlnPiSzpE6DC7dQLAv+HA X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Sep 2026 18:57:58 -0400 (EDT) Date: Tue, 29 Sep 2026 07:57:54 +0900 From: Michael Paquier To: Zsolt Parragi Cc: Nikolay Samokhvalov , pgsql-hackers@lists.postgresql.org, Andrey Borodin Subject: Re: injection_points: canceled or terminated waiters leak their wait slots Message-ID: References: <088AB35D-0860-494A-A9CF-8B301543AA51@yandex-team.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aQGiOMhPc6tAMehJ" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --aQGiOMhPc6tAMehJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 28, 2026 at 10:12:37PM +0000, Zsolt Parragi wrote: > I was able to reproduce the issue both on windows, and on linux by > "patching" the server to reproduce the described behavior. How exactly? > The overall changes look good to me, it just needs some > squashing/organizing to be a proper patchset. TBH, I am not completely sure what you are proposing here. v1-0001 =66rom Andrey and AI-generated-not-reviewed 0003 from Nikolay step on each other with the latter patch requiring the former patch, in terms of the way the last buffered error messages can be consumed, which should be either something local to try_complete_step() or tracked by IsoConnInfo. I'm OK with the basic idea of having more predictible output here, with some alternate outputs to make the CI happier on Windows, let's just organize a bit the whole.. - SELECT pg_terminate_backend(pid) FROM pg_stat_activity + SELECT pg_terminate_backend(pid, 180000) FROM pg_stat_activity Avoiding hardcoded timeouts would be nice. They are not liked on slow machines. -- Michael --aQGiOMhPc6tAMehJ Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmq68PIACgkQnvQgOdby QH3seQ//U4FolvK4bRQy7PXO8p4S/HTS4VL59D9Y0LCPsZP6Z1QFSNFSBeTLHpxq qLCLaiLDECIk0g5SsO7sr8TqPkw8khomRZqseSr3Gzc8urhcDfow5LUzoK9xLVKc xpGfvlEhTDjdszwkZNValcuLbXA5mrdNh4HSSHCdcVmelTCqMLMMJ5ZtI4HrIpYq 16SjrbMaJ34vviFtHTBeuKCVHcWq1Jxh1DIoyzdFtN5q5xbOsr5ESKR/hENXVm14 5hWWhZ1Pbl67parwixLLJjxoXJm5ANX3ZmksE7dOYKH79u9bKFvs6WPTLQNmoc9k 6o+uFXJO2Ks7DVijYmHoOY3KIM9VVshgfKuoDwNbu2VQYowB/UvXjBg8lysviSTq 0svXgffcFwrd4bcwlRJw4c1ZuBL0/Viu6ue7OjlUO1AgPylme2j31hRrl2aKFeq5 gXUqVO9Ft1YjT4xjkL1geVyepszbAwToJJC6IewfBeKhBThGGS+FCn+d92v+lzez bx8RM/LtKbb8ahXxBYzA34YYRLnysBXCk/oleL69iW7tMQmT82S/3JV8wNEH2W+u y0ZkN0E9Mp7T3G2JzU45aCs9MvyMDCiQrMlg3lY9IqCvz5dQB3y3QfRG5WDsMV2o Sw6QAdJJ41rBRVlIFmeJIACUmN5FSSQlrBVgH7H+387d5V7DLRk= =hEKC -----END PGP SIGNATURE----- --aQGiOMhPc6tAMehJ--