Hacker News PostgreSQL· linzhangrun·· 13d ago
PostgreSQL 19 Released with REPACK and Parallel Autovacuum
PostgreSQL 19
Key Takeaway
PostgreSQL 19 was released on 2026-11-19 with the new REPACK command, parallel autovacuum, automatic I/O worker scaling, logical replication of sequence values, and the WAIT command for standby read-your-writes consistency.
Why It Matters
PostgreSQL 19 adds parallel autovacuum, automatic I/O worker scaling, and REPACK while introducing compatibility changes that require careful migration and configuration review.
Technical Breakdown · Distilled from the original source
Online maintenance and I/O scheduling
REPACKreorganizes table contents to reclaim disk space.REPACK (CONCURRENTLY)does so without blocking reads or writes to the table. Parallelautovacuumapplies to table indexes, while a new scoring system determines vacuum priorities.- With
io_method=worker, PostgreSQL automatically adjusts the number of background I/O workers. The oldio_workerssetting is replaced byio_min_workers,io_max_workers,io_worker_idle_timeout, andio_worker_launch_interval.
Replication and query planning
- When
wal_level=replica, logical replication can be enabled without restarting the server. Logical replication now supports sequence values, andWAITprovides read-your-writes consistency on standbys. pg_plan_advicecontrols planner decisions, whilepg_stash_adviceapplies plan advice automatically based on the query. The planner can also turnNOT INinto an anti-join when NULLs are ruled out and perform some aggregation before a join.
Major-version upgrade checks
- Migration requires a dump and restore using
pg_dumpall,pg_upgrade, or logical replication.pg_upgraderejects clusters withbtree_gistindexes oninetorcidrbecause those operator classes can omit rows that should be returned. - The server always enables
standard_conforming_strings. Dumps made with older tools while that setting was off will not load correctly. JIT is now off by default and must be enabled manually if needed for large analytical queries.
Source: Hacker News PostgreSQL· postgresql.org
PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.