What Changes When You Upgrade from PostgreSQL 18 to 19
PostgreSQL 19 brings native online table repacking, faster foreign-key bulk inserts, query plan nudging, and conflict-handling improvements, offering meaningful operational and performance gains over version 18.
read it It provides concrete benchmarks and clear code examples for every major operational and performance change in PostgreSQL 19.
summary
The author benchmarks PostgreSQL 18.6 against 19.0 using a local Docker environment, measuring performance shifts in bulk inserts with foreign keys and NOT IN queries. The new version introduces native online table repacking via REPACK CONCURRENTLY, built-in query plan advice, and ON CONFLICT DO SELECT to avoid extra round-trips. Upgrading requires checking extensions, removing deprecated configuration settings, and planning for changed defaults like disabled JIT and higher transaction lock limits.
key points
- Bulk inserts into tables with foreign keys run over 40 percent faster in PostgreSQL 19 due to direct parent unique index checks.
- Native online table repacking via REPACK CONCURRENTLY reclaims disk space without external tools, though the final swap still requires a brief exclusive lock.
- The new ON CONFLICT DO SELECT clause returns existing row IDs in a single round-trip without requiring a secondary query.
who should read it
Backend engineers and database administrators managing PostgreSQL infrastructure.
discussion positive
consensus
Commenters note that while PostgreSQL 19 feels quiet from an application feature perspective, it delivers massive quality-of-life and operational improvements for ops teams like native REPACK and disabling JIT by default.
pushback
Some commenters question transaction safety guarantees during the native table swap and criticize historical Postgres limitations regarding missing out-of-the-box features like case-insensitive collations.
From an app dev perspective, 19 feels pretty quiet—especially since SQL/PGQ and GROUP BY ALL got pushed out to 20.
For ops, though, it's a huge quality-of-life release. Built-in REPACK (CONCURRENTLY), turning on logical replication without a restart, and turning JIT off by default finally fix some of the biggest day-to-day operational headaches without needing external extensions or workarounds.
It neatly categorizes the release as an operational win rather than an application-developer win, highlighting specific pain points that finally got resolved.
Generated by an LLM from the article and thread. Check the sources before relying on it.