The PostgreSQL Global Development Group released PostgreSQL 19 on November 19, 2026, adding concurrent table rebuilding and tools for influencing query plans. The project highlights table maintenance and plan stability in its announcement. Sources: PostgreSQL
The repack command reclaims storage and reorganizes tables, optionally in index order. The vacuum full and cluster commands remain available for compatibility. Concurrent mode permits reads and writes during the main rewrite, but the final file swap requires an exclusive lock. The lock's duration depends on accumulated changes, so concurrent repacking does not guarantee uninterrupted access. Sources: PostgreSQL
The pg_plan_advice module can constrain join order, join methods, scan methods and parallelism within the existing planner's valid choices. Its companion, pg_stash_advice, stores and automatically applies advice by query identifier. The project says this can address slow plans without changing application SQL. Percona reports that neither module is enabled by default. PostgreSQL's documentation warns that advice can hurt performance as data distributions change. Sources: Percona Community, PostgreSQL
According to Percona's Zsolt Parragi, native concurrent repacking uses logical decoding, while the existing pg_repack extension uses triggers. Parragi also reports that the native command lacks some extension capabilities, including tablespace moves and index-only rebuilding. Sources: Percona Community
Concurrent mode requires a primary key or index-based replica identity and cannot be used on a partitioned table. It also requires available repack replication-slot capacity. Free disk space must cover at least the table and its indexes. Additional space may be needed for sorting and concurrent changes. After repacking commits, transactions using snapshots taken before repacking began can see the table as empty. Sources: PostgreSQL