PostgreSQL folds SIREAD locks when serializable_buffers fills
The author examines PostgreSQL's serializable_buffers parameter and how the database handles transaction record overflows during Serializable Snapshot Isolation. When serializable transaction records exceed the default pool size, PostgreSQL folds older committed transactions into a placeholder, which can degrade performance and cause cache misses when reading from pg_serial. Adjusting serializable_buffers and related parameters can mitigate these locking bottlenecks in long-running serializable workloads. Open article →