Get the latest tech news

Making Postgres slower


As an respectable unemployed person must do, I tried to make Postgres as slow as possible

To measure performance, I will use TPC-C with 128 warehouses as implemented in Benchbase, using 100 connections each attempting to output 10k transactions per second, all being processed by Postgres 19devel (latest as of 7/14/2025) running on a Linux 6.15.6 with a Ryzen 7950x, 32GB of RAM, and a 2TB SSD. I should note that the opposite approach might also work: if I disable autovacuuming entirely, pages will fill with dead tuples, and performance will gradually decrease. Postgres runs automatic vacuum and analysis operations on hot tables every second, which, because the buffer cache hit rate is already low, forces it to read significant amounts from disk.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Postgres

Postgres

Related news:

News photo

We made Postgres writes faster, but it broke replication

News photo

Postgres to ClickHouse: Data Modeling Tips

News photo

Pgactive: Postgres active-active replication extension