← Fri, Nov 20 digest

PostgreSQL 19

read article ↗ hn thread ↗

PostgreSQL 19 introduces REPACK CONCURRENTLY for non-blocking disk space reclamation, logical replication of sequences, and disables JIT by default.

summary is enough Release notes detail major additions like non-blocking table repacking and sequence replication, which can be quickly scanned for features relevant to your stack.

summary

PostgreSQL 19 brings major operational and performance enhancements, most notably the new REPACK CONCURRENTLY command for reclaiming disk space without locks and logical replication support for sequences. It also improves query planning with new extensions and optimizer enhancements while disabling JIT compilation by default due to reliability concerns. Standbys now support read-your-writes consistency via a new WAIT command, and autovacuum adds parallel workers and a prioritization scoring system. Upgrading requires a dump/restore, pg_upgrade, or logical replication.

key points

  1. REPACK CONCURRENTLY replaces VACUUM FULL and CLUSTER, allowing disk space reclamation and reorganization without blocking table reads and writes.
  2. Logical replication now supports sequence values and can be enabled without server restarts under specific wal_level settings.
  3. JIT compilation is now disabled by default because its optimizer cost calculations proved unreliable for analytical queries.
  4. A new WAIT command enables read-your-writes consistency on standby servers by waiting for specific LSN values to be replayed.

who should read it

Database administrators and backend engineers managing PostgreSQL infrastructure.

discussion warm

consensus

Commenters are enthusiastic about features like REPACK CONCURRENTLY, sequence replication, and disabling JIT by default, though many recommend waiting for the .1 release for production use.

pushback

Some commenters express fatigue over the rapid yearly major version release cadence when many production systems are still lagging behind on older versions.

best comment by dbgobrrr ↗

Amazing release, really exciting features:

- REPACK CONCURRENTLY to reclaim disk space, which also affects performance.

- Logical replication of sequences - Fantastic addition. This is a missing piece in the major-version upgrade story which required extra scripting, and enable additional usecases.

- WAIT FOR LSN is a game-changer for read-replicas. For read-after-write, where the write goes to the master and the read hits a random replica. And also read-after-read, where each read may hit different replicas.

Add to that additional performance improvement and the plan advice extension, …

It provides a concise breakdown of the release's standout architectural wins, such as REPACK CONCURRENTLY and the WAIT command.

Generated by an LLM from the article and thread. Check the sources before relying on it.