NEWSFEVER
Technology worth discussing24 / 7 · RU + EN
Back to feedDevelopment & Open Source

PostgreSQL 19 brings table reorganization without blocking reads or writes

The release adds REPACK, query plan controls and support for reading recently written data from standby servers.

Published: 21 Nov 2026, 06:00 UTC
An abstract database of blue blocks is rearranged while continuous light streams pass through it, with an elephant silhouette nearby.
Editorial illustration: reorganizing data while reads and writes continue.

The PostgreSQL Global Development Group announced PostgreSQL 19 on November 19, 2026. A central addition is REPACK, a command that reclaims unused table space and can reorder data to match an index. Its REPACK (CONCURRENTLY) form operates without blocking reads or writes. REPACK replaces VACUUM FULL and CLUSTER, although both commands remain available for compatibility.

The new pg_plan_advice extension lets users stabilize query plan choices and experiment with alternatives. A companion extension, pg_stash_advice, stores advice and applies it automatically using query identifiers, allowing slow plans to be addressed without application changes. Autovacuum can now use parallel workers to vacuum indexes and has a new scoring system for prioritizing tables.

Applications that direct reads to standbys gain read-your-writes consistency through WAIT FOR LSN. Before executing a query, a standby session can wait until WAL replay reaches a specified position, allowing it to read data just written on the primary. INSERT ... ON CONFLICT DO SELECT also simplifies get-or-create operations by returning an existing conflicting row through RETURNING, saving a network round trip.

Improvements to foreign key checks made bulk inserts nearly twice as fast in testing. The release also changes several defaults and authentication features: JIT compilation is disabled by default because the cost estimates used to decide when to apply it proved unreliable. RADIUS authentication support has been removed, and successful md5 password authentication now triggers a warning.

Original source: postgresql.org ↗

Comments on source platforms

Rank is the maximum of the latest discussion counts. These are source metrics.

Hacker News

Хабр