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 1uuZpf-00CwqP-Hp for pgsql-general@arkaria.postgresql.org; Fri, 05 Sep 2025 17:02:41 +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 1uuZpd-008zHr-Jh for pgsql-general@arkaria.postgresql.org; Fri, 05 Sep 2025 17:02:38 +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 1uuZpd-008zHg-3W for pgsql-general@lists.postgresql.org; Fri, 05 Sep 2025 17:02:37 +0000 Received: from mail1.bemta41.messagelabs.com ([195.245.230.1]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uuZpZ-000kNF-2d for pgsql-general@postgresql.org; Fri, 05 Sep 2025 17:02:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pixelpower.com; s=Selector07032025; t=1757091753; i=@pixelpower.com; bh=+TihPp11PBTiVkT2IFA9vpwiCSLGgoVkOXnR7gBGZno=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=sU+0U0gnrtDSKPhWYrnC0+OxoA/978Rb9KzrYj2hU9kIAyfZvbVvamf6vT18c9WDK JKA5BlAZC6+CAUKLMrnHU8bI3H2p9JcC0HkTrslVzT86uXRJ0uL0HGKpSRLBEIjhPJ vHFyn7dFPJxYMalBQhMrizlPVA7JJk5wErGHWu3AB22LBhsfLg3ZN43lvjyqj9EIjN EK4jVhHUBEk3AMGP6Ay3yfD4iC46Uw91LpliD4rrjnZaZwkqhs+xS/gYCIwjmo4r9B +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vfU6Y572Z023zvkJ/U 6S8tikdP3Mrnco1vdIrjXRxd8//D6h9C57WOFrJIB/j3SM489b068se9n4x/W0V+zrRd21k81 Tt1bZCyUXJUbJPqogQHvuv/BTg2K/4LzdHJUXRYKmb/7+7xnB11piln2CRNgmft+Se6Y996Z6 1N26Uiypa6i2d8esJ65DJfyMT0VS81J795LqDiYSHWIbz3qNaXE2s9V67+8UhTUH/BNreFJ3m vRh/r/17PtHu38MT5M7iEeBe5BG8VeqrEUpyRaKjFXFScCADJLHZ0ZgQAAA== X-Env-Sender: acozens@pixelpower.com X-Msg-Ref: server-4.tower-853.messagelabs.com!1757091752!14338!1 X-Originating-IP: [52.101.195.119] X-SYMC-ESS-Client-Auth: mailfrom-relay-check=pass X-StarScan-Received: X-StarScan-Version: 9.118.3; banners=pixelpower.com,-,- X-VirusChecked: Checked Received: (qmail 16091 invoked from network); 5 Sep 2025 17:02:32 -0000 Received: from mail-ukwestazon11020119.outbound.protection.outlook.com (HELO CWXP265CU008.outbound.protection.outlook.com) (52.101.195.119) by server-4.tower-853.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 5 Sep 2025 17:02:32 -0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h/VGvP7IU8V67fdzH9PysYHULgcOml6X6PVPDTJt/NcQtrGOvpocGOAW7PYgu4bZfJ2odEsxzb+t5sANGM3DpYGhJZxwInr8sYMpdGw2Q+h013VXX1Y6wkrM/QW2YP8bzdmWB8rAaTF4U2O2a8xjPjkNNZGbUmnhWIXrAeYbbMs1Cs/KRRt5U/6K/UbsOQH9hv7hFiSc/GLYSIVf5XBvVdvYsa4iNqdH00irv1aadrOajO/Rct5ieRYBvbaqg6nRjblD6G1Ggr1rITV643VLomsolkdDjshjdEybt6I3AfRbCsK/4h+O/T829V+hK+ouUMCpM5clzScrHLxgCHRn/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Djz91hbS/MYAh3L4TZY5usIo7PGMd+FSKR7XIo5fnEQ=; b=joTbQ5gqggSB8ApYyZUBkq+uZHKH5QCec9dA2ETkALgoGMz4Ut964A/bAzCiP/PPi9uYnbmGoPmhAuqbvgNcGIja3j+CPmXfIqfdKVxShRjKAPZubJL4xJceffrD4AMCPH+F330szhMWpwBFBY2XIoaDzeLSY+UawDwyJbWSbDzNOJfQBsY3GYXmzJjHp6eFMdLgosvq7mQd9ZDj5fwoxFP61hesYbNf9jX2FhKCUogS2cQDRIZyMWH/Ay5VzxgzKn301QE23ypZh8150xAQDlpkytMyE+cWEb210YQtpU+6VMXdYhPa8iphXsLJcentAKdqNigdKZqiInNj/g+NhQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=pixelpower.com; dmarc=pass action=none header.from=pixelpower.com; dkim=pass header.d=pixelpower.com; arc=none Received: from LO2P123MB1711.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:cb::13) by CWXP123MB5738.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:199::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9094.17; Fri, 5 Sep 2025 17:02:29 +0000 Received: from LO2P123MB1711.GBRP123.PROD.OUTLOOK.COM ([fe80::86f:1e6c:5343:e287]) by LO2P123MB1711.GBRP123.PROD.OUTLOOK.COM ([fe80::86f:1e6c:5343:e287%7]) with mapi id 15.20.9073.026; Fri, 5 Sep 2025 17:02:28 +0000 From: Alec Cozens To: "pgsql-general@postgresql.org" Subject: LWLock SerializableFinishedList Thread-Topic: LWLock SerializableFinishedList Thread-Index: AdwehPU7dO/joFdST/qND9jVOOC4NA== Date: Fri, 5 Sep 2025 17:02:27 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LO2P123MB1711:EE_|CWXP123MB5738:EE_ x-ms-office365-filtering-correlation-id: 5bd3a6d7-927b-43a4-e9ac-08ddec9dfebb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|366016|376014|38070700018|8096899003; x-microsoft-antispam-message-info: =?us-ascii?Q?tWmT2WaRwBcbqWqtGs+N2Yl+BmNkDIxcldHFudUlwDzkXEHF8iLq3ZcgK69h?= =?us-ascii?Q?FKbTP1lh/amCnIj7QPPT/9h9cX6KCKpt/8CjAmA68sIqHzWmxuJ2VnuJutdL?= =?us-ascii?Q?8gzDBr03FKWY/lIAsknAMMvOLqET3czYeRQ70a+wJCyVEoc+f6iKxKlVAbqQ?= =?us-ascii?Q?JVJaOh4PExH+RQqQ4uo8/XFr3b9J1y/5OVUhZPFoCj0xOwIaRy3SD+GMMO7L?= =?us-ascii?Q?koaKKuTr9/h/oIodjBydZvc+miw89qk2X38zrF9hEK7VYfF97jJ+qZiM3CWX?= =?us-ascii?Q?l5lF3+h+FcBiAzUL2xiR+E3LOQgN5ZXtlKNXzzmHWrv1XlocFtif3lShRqYj?= =?us-ascii?Q?g/z7+dfyqsd9eB4HRGc7M/MTh6hWX5Bgw3liZrej5C+OBaHnNO5Cj8e/gbG8?= =?us-ascii?Q?/01uDRYnw2dfsTGLjqfKsJuCZkoeCQvYGsg2gc3/JIwEypZ4velxH/B+Z7N/?= =?us-ascii?Q?Nd9z3UFehZ4jJBdn338Z32Ve9lpKeGgpsUcYogLkMumq7/OWjBQkCKyKx1De?= =?us-ascii?Q?qwYaipNeZdtTW6n/PcN5Udf7u7ndnw6i+cz/7uWsq9XB2nI5KYCpGRTxpqeu?= =?us-ascii?Q?lAxD+nd5P1vqCq+Ol9WY6ul1rL9k1M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ispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LO2P123MB1711.GBRP123.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(38070700018)(8096899003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wYOvEXSUQMcxx3StycnFbauN7dxdiwDI7ABdVmOp9yFKM0lg0IQdazAyV9Nl?= =?us-ascii?Q?9BKMwYrJUlYXLcCJV5yFc3Sz9FmgoJPXdl/45ZnGDpyfmuwUofaLPZxl7794?= =?us-ascii?Q?AWA3OZ2xYqsFtdFtM0QF3fP79/cNeA2e3X5lpWOoWqK5scOMrC46AQO9i4PA?= =?us-ascii?Q?zlfjb4ONqf0aAEIDwRzJ57aTyG6fR2VJhnu4mJQ31Kup7X79w8TQQnU4L/Vx?= =?us-ascii?Q?tafpWdkxLrAdWKWKJfIsPYTvmcyQ5enHPvZd/9iRjbg9pyOYxyfY2qG+Bjvs?= =?us-ascii?Q?q+5UsICmbDSY21W0BWHyE/gT3KVDt9bhVLrlGU02eu/Cuox2JwsKnlbSd+P6?= =?us-ascii?Q?5jl0JzxbnkbRhle+t87gFIfguLpxYBQkhvh7LEgZzi8zWTjuthZU8DQN9sxl?= =?us-ascii?Q?8d5ZFeWTW/qwjei3jB78ZgdPsKof3xshiepDpdCU9CCPZ0htnOdrK6AHBFba?= =?us-ascii?Q?EI0HFkJlzgN6p6zObDlHxmNWd74lnj8l+YlIpgLFBweytjgk03qadFyGPoyX?= =?us-ascii?Q?2gjrpQjmuK51ZI5fhLYOKZV5hoczZV9rL127Byq2fINPGBn4t4rX5mt/nyBi?= =?us-ascii?Q?PkO2frXY4PAKMSuHcIUVJ7TxJm835SiN7kSI88kdpG48kpGoQfl+kolhzq5i?= =?us-ascii?Q?UiyJ3tLfJr4N8ZHwyT7iVvVOINKyHdgYL5D42Md6U9w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MzRCQguTuUQK4jS3EmqsKyp5gflb2ixquTg3?= Content-Type: multipart/alternative; boundary="_000_LO2P123MB17113181847230A9D67C8602CD03ALO2P123MB1711GBRP_" MIME-Version: 1.0 X-OriginatorOrg: pixelpower.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LO2P123MB1711.GBRP123.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 5bd3a6d7-927b-43a4-e9ac-08ddec9dfebb X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Sep 2025 17:02:28.3753 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 003c13c0-fabe-446e-ae96-c2ca744f4da0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DnMPipLsaJtIyuCx5WfUromyavdLpQS2knzCPDuocY17OELcovfLH5fyQx8IFSrYL8PdvmN28q5acNeDAGzD8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP123MB5738 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_LO2P123MB17113181847230A9D67C8602CD03ALO2P123MB1711GBRP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I'm having trouble with PostgreSQL 16.8 on Windows where for maybe days it= all works perfectly until the number of active connections start increasi= ng, until over say 10 minutes all 97 connections are active but seemingly = waiting on LWLock on SerializableFinishedList. They will remain in this lo= cked state for some arbitrary period, up to 1 hour 40 minutes, after which= the connections will all clear apparently simultaneously and the applicat= ion continues. The connections are opened, a few command executed and then closed and ret= urned to the connection pool. The application runs on the same server as the postgresql service. Changing statement_timeout to 1 minute doesn't seem to cancel these "activ= e" connections. Most of the application runs in READ COMMITTED isolation level, but the pa= rticular stored procedure that seems to cause the issue runs in SERIALIZED= . We end up with "active" but hanging connections running this stored proc= edure or the associated commands generated by npgqql associated with openi= ng, closing and returning connections to the pool. I can't find any information about SerializeableFinishedList or why all th= e standard timeout parameters seem to have no effect on the cancellation o= f these hung connections. The npgsql client configuration talks about clea= ring idle connections, but these are not idle, they are active but hung. Any thoughts on the matter, or what might cause a lock on SerializableFin= ishedList would be much appreciated. Regards, Alec ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ --_000_LO2P123MB17113181847230A9D67C8602CD03ALO2P123MB1711GBRP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

I’m having trouble with PostgreSQL 16.8 on Wi= ndows where for maybe days it all works perfectly until the number of acti= ve connections start increasing, until over say 10 minutes all 97 connecti= ons are active but seemingly waiting on LWLock on SerializableFinishedList. They will remain in this locked state for so= me arbitrary period, up to 1 hour 40 minutes, after which the connections = will all clear apparently simultaneously and the application continues.

 

The connections are opened,=20a few command execute= d and then closed and returned to the connection pool.

 

The application runs on the same server as the post= gresql service.

 

Changing statement_timeout to 1 minute doesn’= t seem to cancel these “active” connections.

 

Most of the application runs in READ COMMITTED isol= ation level, but the particular stored procedure that seems to cause the i= ssue runs in SERIALIZED. We end up with “active” but hanging c= onnections running this stored procedure or the associated commands generated by npgqql associated with opening, closing and returni= ng connections to the pool.

 

I can’t find any information about Serializea= bleFinishedList or why all the standard timeout parameters seem to have no= effect on the cancellation of these hung connections. The npgsql client c= onfiguration talks about clearing idle connections, but these are not idle, they are active but hung.

 

Any thoughts on the matter, or what might cause&nbs= p; a lock on SerializableFinishedList would be much appreciated.

 

Regards,

Alec


______________________________________________________________________
= This email has been scanned by the Symantec Email Security.cloud service.<= BR> For more information please visit http://www.symanteccloud.com
______________________________________________________________________
= --_000_LO2P123MB17113181847230A9D67C8602CD03ALO2P123MB1711GBRP_--