-
Postgres doesn’t know it’s in a container. The OOM killer does.
The kernel enforces your Postgres pod’s memory limit, not Postgres. Here is how to budget shared_buffers, work_mem and the pod limit together, and what actually happens when you cross it. →
-
Why your index build took four hours — maintenance_work_mem explained
The third piece in a series on PostgreSQL memory. Why your CREATE INDEX crawled on a 500GB table, why autovacuum runs but doesn’t finish the job, and the one setting you should be generous with. →
-
Why your sort spilled to disk — and what to do about it
Hi there — Welcome to issue #2 of Vacuum & Analyze. This is the second piece in a series on PostgreSQL memory. Issue #1 covered shared_buffers and why bumping it to 75% is the wrong instinct. Today: work_mem, and why your sort spilled to disk. A query that normally runs in 200ms suddenly takes 8… →
-
Why adding more shared_buffers doesn’t always help
The first piece in a series on PostgreSQL memory. Why the RAM that looks idle in htop is already working, why bigger shared_buffers stops helping past a point, and the one diagnostic that actually tells you whether you need more. →