public inbox for [email protected]  
help / color / mirror / Atom feed
From: Alec Cozens <[email protected]>
To: [email protected] <[email protected]>
Subject: LWLock SerializableFinishedList
Date: Fri, 5 Sep 2025 17:02:27 +0000
Message-ID: <LO2P123MB17113181847230A9D67C8602CD03A@LO2P123MB1711.GBRP123.PROD.OUTLOOK.COM> (raw)

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 increasing, until over say 10 minutes all 97 connections are active but seemingly waiting on LWLock on SerializableFinishedList. They will remain in this locked state for some 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, a few command executed and then closed and returned 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 "active" connections.

Most of the application runs in READ COMMITTED isolation level, but the particular stored procedure that seems to cause the issue runs in SERIALIZED. We end up with "active" but hanging connections running this stored procedure or the associated commands generated by npgqql associated with opening, closing and returning connections to the pool.

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

Any thoughts on the matter, or what might cause  a lock on SerializableFinishedList 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
______________________________________________________________________

view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: LWLock SerializableFinishedList
  In-Reply-To: <LO2P123MB17113181847230A9D67C8602CD03A@LO2P123MB1711.GBRP123.PROD.OUTLOOK.COM>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox