Hussein Nasser· @hnasr · X·· 11d ago
PostgreSQL 19 Adds REPACK to Combine CLUSTER and VACUUM FULL
Key Takeaway
PostgreSQL 19 adds REPACK to reorder a table by index, remove bloat, and return disk space to the OS. Standard REPACK blocks reads and writes. REPACK (CONCURRENTLY) allows both during the main phase but still takes an ACCESS EXCLUSIVE lock for the final table and index file swap.
Why It Matters
Index based reordering and disk space reclamation can be handled in one maintenance operation, but even concurrent mode needs an exclusive lock for the final swap.
Source: Hussein Nasser (@hnasr)· x.com
PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.