SQLNirvana by Pyro

The SQLNirvana blog

Articles about postgresql

Tuning, upgrades, vacuum, indexes and security, written for teams that look after their own databases.

Allmysql 10postgresql 9upgrade 3indexes 2locks 2tuning 2vacuum 2aws 1queries 1schema 1security 1
postgresqlupgrade

PostgreSQL 14 reaches end of life in November 2026: upgrading with pg_upgrade

PostgreSQL 14 gets its final release in November 2026. A practical plan for moving to PostgreSQL 17 with pg_upgrade, and when logical replication is the better route.

02 Oct 2026 · 2 min read
awsmysqlpostgresql

Monitoring Amazon RDS for MySQL and PostgreSQL: what CloudWatch tells you and what it doesn't

CloudWatch shows how the instance is doing. It doesn't tell you why. How to combine instance metrics with database-level checks, and how parameter groups work.

29 Sep 2026 · 2 min read
mysqlpostgresqllocks

Who is blocking whom? Finding lock waits in MySQL and PostgreSQL

When queries pile up waiting for each other, here's how to find the session holding the lock, see what it's doing, and decide whether to end it.

20 Sep 2026 · 2 min read
postgresqltuning

Tuning PostgreSQL memory: shared_buffers, effective_cache_size and work_mem

The four memory settings that matter most in PostgreSQL, what each one actually does, and sensible starting values for your server.

17 Sep 2026 · 2 min read
postgresqlindexes

PostgreSQL foreign keys without indexes slow down deletes and joins

PostgreSQL indexes the referenced side of a foreign key, but not the referencing side. Why that matters, how to find the gaps, and how to fix them without locking.

14 Sep 2026 · 2 min read
postgresqlvacuum

Transaction ID wraparound in PostgreSQL: what it is and how to stay far away from it

PostgreSQL's 32-bit transaction IDs must be frozen before they wrap. Here's how to see how close each database is, and what to do if it's getting near.

11 Sep 2026 · 2 min read
postgresqlvacuum

PostgreSQL autovacuum explained, and how to tell when it's falling behind

Why PostgreSQL needs VACUUM at all, how autovacuum decides when to run, and the per-table settings that keep big tables healthy.

08 Sep 2026 · 2 min read
mysqlpostgresqlschema

AUTO_INCREMENT and sequences running out: spot it before inserts fail

An INT primary key tops out at about 2.1 billion. When it runs out, every insert fails. How to check how close you are in MySQL and PostgreSQL, and how to fix it.

05 Sep 2026 · 3 min read
mysqlpostgresqlindexes

Duplicate and redundant indexes: find them and drop them safely

Every extra index slows down writes and uses memory. Here's how to find the ones that do nothing in MySQL and PostgreSQL, and how to remove them without risk.

02 Sep 2026 · 2 min read

RSS feed