Re: huge SubtransSLRU and SubtransBuffer wait_event - Mailing list pgsql-performance

From Laurenz Albe
Subject Re: huge SubtransSLRU and SubtransBuffer wait_event
Date
Msg-id 2e9c28409b28546235c68e6440e6f9e9cf4be995.camel@cybertec.at
Whole thread Raw
In response to huge SubtransSLRU and SubtransBuffer wait_event  ("James Pang (chaolpan)" <chaolpan@cisco.com>)
Responses RE: huge SubtransSLRU and SubtransBuffer wait_event  ("James Pang (chaolpan)" <chaolpan@cisco.com>)
Re: huge SubtransSLRU and SubtransBuffer wait_event  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
List pgsql-performance
On Thu, 2024-02-01 at 11:50 +0000, James Pang (chaolpan) wrote:
> We have a Postgresqlv14.8 server, client use Postgresql JDBC connections, today,
> our server see a lot of  “SubtransBuffer” and “SubtransSLRU” wait_event.
> Could you help direct me what’s the possible cause and how to resolve this waits ?

Today, the only feasible solution is not to create more than 64 subtransactions
(savepoints or PL/pgSQL EXCEPTION clauses) per transaction.

Don't use extensions or the JDBC driver option to simulate statement level rollback,
that is the road to hell.

Yours,
Laurenz Albe



pgsql-performance by date:

Previous
From: "James Pang (chaolpan)"
Date:
Subject: huge SubtransSLRU and SubtransBuffer wait_event
Next
From: Daniel Blanch Bataller
Date:
Subject: Memory growth using many named prepared statements, in spite of using DISCARD ALL afterwards.