PostgreSQL 19 Is Coming: REPACK, Autovacuum and Life Without Maintenance Windows

PostgreSQL 19 is a release expected to reach general availability this month; the fourth beta came out on September 24, 2026, with a release candidate planned for early October. What interests us isn't the shiny new features but the part that will cut down the hours we've spent for years arranging maintenance windows.

REPACK: a built-in answer to table bloat

Dead rows causing bloat in tables with heavy update traffic is a classic problem. For a long time, the solution was either to lock the table with VACUUM FULL or to install the external pg_repack tool. With PostgreSQL 19, REPACK moves into core; in beta 4 it also received crash and permission fixes.

In practice, this means that for constantly updated tables, such as vehicle tracking or order status, you'll be able to repack without installing an extra extension and without stopping production. But make no mistake — this doesn't replace index design and a sensible data retention policy.

Comparison of VACUUM FULL and pg_repack with PostgreSQL 19's built-in REPACK for table bloat.
REPACK is no substitute for index design.

The new autovacuum scoring system

The change in this release that gets talked about less but affects day-to-day life more is autovacuum's new scoring system. The old threshold-based logic looked at large and small tables the same way; as a result, it fired either too often or too late. Because the new approach prioritizes tables, we expect fewer surprises of the "the big table hasn't been vacuumed in months" kind.

Still, our advice hasn't changed: evaluate autovacuum settings per table. Setting a dedicated autovacuum_vacuum_scale_factor for the three most heavily written tables is safer than tinkering with server-wide settings.

Other concrete gains

  • WAIT FOR command: improved deadlock and isolation level error reporting.
  • CREATE PUBLICATION ... EXCEPT makes it easier to exclude tables from logical replication; on large schemas it's much shorter to write.
  • COPY FROM gets SIMD optimization, for a measurable speedup in bulk data loading jobs.
  • Performance improvements in foreign key checks.

While we wait: features that were pulled

An honest note: some features were pulled during the beta for the sake of stability. SQL/PGQ (graph queries), turning data checksums on and off online, temporal update/delete with FOR PORTION OF, and ALTER TABLE ... MERGE/SPLIT PARTITIONS are not in this release. If you've tied your roadmap to one of these, it's time to revisit the plan.

We read these withdrawals not as a flaw but as the community's discipline around predictability. In an enterprise database, a feature that "might work" is worse than no feature at all.

Our upgrade approach

We don't rush major version upgrades. Our typical plan: wait for at least one patch release after GA, do a pg_upgrade dry run on a copy of the data, verify extension compatibility (especially PostGIS and pgvector) in advance, and run ANALYZE as the very first step after the upgrade. When that last item is skipped, a post-upgrade "everything got slower" complaint is all but guaranteed.

PostgreSQL major version upgrade plan: wait for a patch release, rehearse pg_upgrade, verify extensions and run ANALYZE.
Skip ANALYZE and post-upgrade slowdown complaints are guaranteed.

Don't try to fix bloat without measuring it

It's great that REPACK is moving into core, but before deciding to repack a table, you need to measure that bloat actually exists. A situation we see often is a team jumping from the observation "the table is big" to the conclusion "the table is bloated." The two are different: a big table can be perfectly normal, while a bloated table means dead rows wasting disk and cache.

Our practical approach is to put a simple query that tracks the dead row ratio and the last autovacuum time on the monitoring dashboard. These two numbers tie maintenance decisions to data rather than guesswork. One more thing: the source of bloat is often the write pattern. Counter logic that updates a row on every request (for example, a "last seen" timestamp) can produce enormous bloat on its own. Moving such fields to a separate table or reducing the update frequency is a more lasting fix than any maintenance command.

Logical replication is now more practical

For teams that want to offload reporting from the primary database, CREATE PUBLICATION ... EXCEPT is a real convenience. Previously, excluding three tables from a hundred-table schema meant writing out ninety-seven tables by hand — and forgetting to update the publication when a new table was added to the schema was a classic mistake. Now the rule can be set up the other way around, which means new tables are included automatically.

If maintenance work is becoming impossible to handle by hand as your database grows, or you want to put together an upgrade plan, write to us through our contact page. Here's what we've learned across more than 500 projects: database maintenance is the only kind of technical debt that keeps accruing interest for as long as it's postponed.