Lwlock:SubtransBuffer

The SubtransBuffer event occurs when a backend process is waiting to read or write a data page in the pg_subtrans SLRU (Simple Least Recently Used) cache.
Waiting for I/O on a sub-transaction SLRU buffer.
The SubtransBuffer wait event is often considered as the early indicators of architectural issues within your application.
While most developers are familiar with standard transaction locks, SubtransBuffer indicates a bottleneck in how PostgreSQL tracks the relationship between transactions and their subtransactions.

Common Causes of High SubtransBuffer Waits

PostgreSQL uses the pg_subtrans directory to maintain a mapping of every subtransaction ID (subXID) to its parent transaction ID.
This mapping is vital for MVCC (Multi-Version Concurrency Control)—the database needs it to determine if a row version (tuple) created by a subtransaction should be visible to other sessions. This wait event may appear along with SubtransSLRU wait events. If yes, Please refer to SubtransSLRU for more details