The Spectrum Dispatch News

technology

PostgreSQL 19 Released With Performance Improvements and New Replication Features

The November 2026 release includes a REPACK command for disk space reclamation, enhanced logical replication, and automatic query planning improvements.

PostgreSQL 19 Released With Performance Improvements and New Replication Features

PostgreSQL 19 was released on November 19, 2026, introducing several performance enhancements and new capabilities for database management.

PostgreSQL 19 Released With Performance Improvements and New Replication Features

Among the major new features is a REPACK command that reclaims disk space and reorganizes table contents to improve query performance. According to the release notes, REPACK can run concurrently without blocking reads and writes to the table.

Logical replication received significant upgrades. The database now supports replication of sequence values and can be enabled without requiring a server restart when wal_level is set to replica. A new WAIT command enables “read-your-writes” consistency on standbys.

Query planning and optimization saw multiple improvements. New pg_plan_advice and pg_stash_advice extensions allow controlling and automatically applying query planner decisions. The optimizer also supports converting NOT IN clauses to more efficient ANTI JOINs when NULLs are absent, and LEFT JOINs to ANTI JOINs in more scenarios. Aggregate processing can now occur before joins, potentially reducing the number of rows requiring processing.

Performance gains extend across infrastructure as well. Automatic scaling of I/O worker processes, quicker foreign-key checks, and additional planning and execution optimizations are included. Parallel autovacuum of table indexes and a new prioritization scoring system also enhance maintenance performance.

The release contains several breaking changes requiring attention during upgrades. JIT is now disabled by default, reversing previous behavior. The standard_conforming_strings setting is forced to always be on. RADIUS authentication support has been removed due to inherent security flaws. The max_locks_per_transaction default has doubled from 64 to 128.

Carriage returns and line feeds are now disallowed in database, role, and tablespace names to prevent security issues. The default index opclasses for inet and cidr data types have changed from btree_gist to GiST, with pg_upgrade preventing upgrades of clusters using the previous broken implementation.

According to the release documentation, migrating data from previous versions requires a dump/restore using pg_dumpall, use of pg_upgrade, or logical replication. Users should review the compatibility notes carefully before upgrading, particularly regarding character handling changes in full text search, pg_trgm, and fuzzystrmatch functions when using non-libc locale providers.

Key facts

  • PostgreSQL 19 released November 19, 2026
  • New REPACK command allows concurrent disk space reclamation and table reorganization
  • Logical replication now enables without server restart when wal_level is replica
  • New WAIT command provides read-your-writes consistency on standbys
  • Multiple query optimizer improvements including ANTI JOIN conversion and earlier aggregate processing
  • Parallel autovacuum indexes and new prioritization scoring system
  • JIT disabled by default, reversing previous behavior
  • RADIUS authentication support removed
  • standard_conforming_strings forced to always be on
  • max_locks_per_transaction default increased from 64 to 128

Sources

← All posts