Skip to content
FAQ

PostgreSQL 19 Released with Online Table Repacking and Query Planning Controls

PostgreSQL 19 isn't flashy, but online REPACK and plan advice address two of the most common DBA pain points: maintenance downtime and planner surprises.

1 min read

PostgreSQL 19 isn’t flashy, but online REPACK and plan advice address two of the most common DBA pain points: maintenance downtime and planner surprises.

Key points

  • The new REPACK command reclaims table space and can reorder data by index; its CONCURRENTLY option avoids blocking reads and writes.
  • pg_plan_advice and pg_stash_advice let administrators influence query plans without changing application code.
  • Changes to foreign key checks made bulk inserts nearly twice as fast in testing; parallel index vacuuming and better anti-joins also arrive.
  • Logical replication now covers sequences, and WAIT FOR LSN gives read-your-writes consistency on standbys.
  • Developers get INSERT … ON CONFLICT DO SELECT, JSON output from COPY and more SQL/JSON functions.

Why it matters

Postgres keeps winning the boring way: every release removes one more reason to page a DBA at 3 a.m. Online REPACK could retire a lot of risky VACUUM FULL maintenance windows.

Sources

Sources

open-source developer-tools

Frequently Asked Questions

What is the biggest change in PostgreSQL 19?
PostgreSQL 19 adds a REPACK command that reclaims unused table space and can reorder data to match an index. With the CONCURRENTLY option it runs without blocking reads or writes, which makes it a potential replacement for common uses of VACUUM FULL and CLUSTER.
How does PostgreSQL 19 help with bad query plans?
PostgreSQL 19 introduces the pg_plan_advice and pg_stash_advice extensions, which let administrators influence query plan selection and apply stored advice to queries by identifier. This works without changing application code.
What does PostgreSQL 19 add for replication?
Logical replication now supports sequence values, and PostgreSQL automatically raises the effective WAL level to logical when the first logical replication slot is created. A new WAIT FOR LSN command lets applications wait for a standby to replay a given WAL position, giving read-your-writes consistency.
Share