Skip to content
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

  • REPACK reorganizes table contents to reclaim disk space. REPACK (CONCURRENTLY) does so without blocking reads or writes to the table. Parallel autovacuum applies 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 old io_workers setting is replaced by io_min_workers, io_max_workers, io_worker_idle_timeout, and io_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, and WAIT provides read-your-writes consistency on standbys.
  • pg_plan_advice controls planner decisions, while pg_stash_advice applies plan advice automatically based on the query. The planner can also turn NOT IN into 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_upgrade rejects clusters with btree_gist indexes on inet or cidr because 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.

Read Official Source

Related PostgreSQL Reference