HeadlinesBriefing favicon HeadlinesBriefing.com

Postgres 19 beta adds REPACK, graph queries and smarter vacuum

Hacker News •
×

Postgres 19 entered beta, and the release packs a mix of convenience upgrades. The standout is a built‑in REPACK command with a REPACK CONCURRENTLY option, eliminating the need for external extensions when shrinking table bloat. Logical replication adds sequence synchronization, an EXCEPT clause, ALL SEQUENCES support and auto‑enables when wal_level=replica. These improvements boost replication reliability for critical workloads.

Partitioning becomes more adaptable; users can now merge or split partitions without rebuilding tables. Combine quarterly partitions into a half‑year partition or split a quarter into monthly slices, addressing shifting data volumes and retention policies. Such flexibility lets DBAs adjust to evolving retention windows and uneven growth without costly rewrites. These commands reduce downtime and simplify schema evolution for large‑scale deployments.

Autovacuum gains parallel workers and a scoring system that ranks tables by urgency, exposed via pg_stat_autovacuum_scores. VACUUM VERBOSE now logs memory use and progress, improving observability. SQL property graph support lets developers define graphs with CREATE PROPERTY GRAPH and query them through SQL extensions, integrating graph analytics into the relational engine. These changes lower the barrier for teams to use graph queries without a separate system.