czay.dev
Writing

PostgreSQL 19 Released: REPACK CONCURRENTLY, Sequence Replication & pg_upgrade Checklist

PostgreSQL 19 brings built-in REPACK CONCURRENTLY to reclaim disk space without locking production tables. Release summary, safe SQL commands, and the 4 breaking changes to check before running pg_upgrade.

Furkan ÖzayNovember 23, 2026 · 2 min read

Running VACUUM FULL or CLUSTER on a bloated production table takes an ACCESS EXCLUSIVE LOCK and stalls live traffic. For years, teams relied on external extensions like pg_repack to avoid downtime.

Released on November 19, 2026, PostgreSQL 19.0 moves REPACK (CONCURRENTLY) into core so you can reclaim disk space while reads and writes keep flowing.

1. Safe REPACK (CONCURRENTLY) Commands

SQL
-- Reclaim dead-tuple bloat without blocking traffic:
REPACK (CONCURRENTLY) orders;
 
-- Physically reorder by index (replaces CLUSTER):
REPACK (CONCURRENTLY) orders USING INDEX idx_orders_created_at;
 
-- Verbose output + fresh planner statistics:
REPACK (CONCURRENTLY, VERBOSE, ANALYZE) orders;
  • Cannot run inside an explicit transaction block.
  • Database-wide REPACK (omitting a table name) does not support CONCURRENTLY.

2. Key Highlights in PostgreSQL 19.0

  • INSERT ... ON CONFLICT DO SELECT: Return the conflicting row in a single statement without a follow-up SELECT.
  • Replication: Enable logical replication without a server restart (when wal_level = replica), native logical replication of sequence values, and the new WAIT command for read-your-writes consistency on standbys.
  • Performance Defaults: lz4 is now the default TOAST compression, JIT is disabled by default for predictable OLTP latency, plus auto-scaling I/O workers and parallel index autovacuum.

3. 4 Breaking Changes Before Running pg_upgrade

  1. RADIUS auth removed — migrate pg_hba.conf entries before upgrading.
  2. Dumps with standard_conforming_strings = off are no longer loadable.
  3. Legacy inet/cidr btree_gist indexes block pg_upgrade — locate and rebuild them first.
  4. Object names containing CR/LF stop pg_upgrade — audit and rename before upgrading.

Official References

Interactive Roadmap & Tool

Come build with us.

Help when you're stuck, a second pair of eyes on your code, new tools before anyone else.

Join the LabFree · One click and you're in

Read next