Skip to content
The Postgres Guy

The Postgres Guy

  • All posts
  • Videos
  • Book
  • About
  • Résumé

Tag: memory

  • Postgres doesn’t know it’s in a container. The OOM killer does.

    December 2, 2026
    Kubernetes

    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

    June 30, 2026
    Performance

    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

    June 16, 2026
    Vacuum & Analyze

    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

    June 2, 2026
    Vacuum & Analyze

    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. →

© 2026 The Postgres Guy.

Let’s go deeper than the docs

Blog

All posts

About

RSS

  • YouTube
  • LinkedIn
  • GitHub
  • X
  • Bluesky
  • Instagram
  • Reddit

Loading Comments...