PostgreSQL 19 went GA on November 19, 2026. If you run Postgres in production, you have probably already skimmed the announcement and spotted the headline items: REPACK, parallel autovacuum, plan advice and read-your-writes on standbys.
The harder question isn't what's new. It's which changes deserve a place in your next sprint, which belong in a staging experiment and which you can safely leave for the next upgrade cycle. This post sorts the release into those three buckets, and it starts with the part most changelogs bury: the defaults that change behavior even if you never touch a single new feature.
TL;DR
- Adopt early (with testing): parallel autovacuum, automatic I/O worker scaling, the logical replication improvements and the lz4 compression default.
- Try in staging first:
REPACK (CONCURRENTLY),WAIT FOR LSN,pg_plan_adviceandpg_stash_advice, and the planner speedups. - Postpone: plan advice where plans are already stable, replication redesigns made just to use new features and rewrites of maintenance procedures that already work.
Start here: defaults that changed
These affect you the moment the new binaries start, whether or not you use any new feature.
JIT is now off by default
JIT compilation no longer switches on automatically. Analytical queries that quietly benefited from it may slow down after the upgrade with zero code changes. Benchmark representative heavy queries on 19 and enable JIT explicitly where it helps: globally, per database or per role.
TOAST compression defaults to lz4
When the server is built with lz4 support, newly TOASTed values (large text, JSON documents, other compressible data) use lz4 instead of pglz. Two caveats: existing data is not recompressed, and any compression settings you configured explicitly need their own review.
max_locks_per_transaction doubled to 128
The default moved from 64 to 128, and the PostgreSQL documentation states that the value must now be doubled to keep the lock capacity you had before. If you carry a tuned postgresql.conf over from an older version, recalculate this value instead of copying it.
Renamed identifiers in monitoring
Two renames can silently break dashboards and alert rules:
-
sync_error_countinpg_stat_subscription_statsis nowsync_table_error_count. - The
BUFFERPINwait event type is nowBUFFER.
Search your monitoring queries, dashboards and scripts for the old names before the upgrade. It takes minutes and is far cheaper than an on-call surprise afterward.
Adopt early (but still test)
Parallel workers for index vacuuming
Autovacuum can now process a table's indexes with parallel workers. Capacity is controlled cluster-wide with autovacuum_max_parallel_workers and per table with the autovacuum_parallel_workers storage parameter.
The payoff is biggest on large, write-heavy tables with big indexes. It isn't free, though: every worker consumes CPU, memory and I/O that your application queries also need. Tune it against real maintenance windows and resource graphs rather than maxing out the setting.
Self-adjusting I/O workers
With io_method = worker, PostgreSQL 19 scales background I/O workers automatically between io_min_workers and io_max_workers, which replace the old io_workers setting. Together with better asynchronous read-ahead for large requests, this mainly helps workloads that scan lots of data. Apps dominated by small indexed lookups should expect less.
Logical replication with less friction
Two improvements matter for anyone building migration pipelines or maintaining downstream copies:
- Logical replication can be enabled without a server restart when
wal_levelis already set toreplica. - Sequence values can now be synchronized through logical replication, for example by publishing all sequences.
Read the fine print: ongoing sequence changes are not replicated automatically, so you still need a plan for when sequence state gets refreshed on the subscriber. What disappears is a chunk of custom sync glue, not the need to think about consistency.
lz4 for new data
Already covered as a default change, but it belongs here too: for teams storing large JSON or text values, letting new data use lz4 is a reasonable early win. Measure storage and CPU before you declare victory.
Test in staging first
REPACK (CONCURRENTLY)
REPACK is a native command for reorganizing a table and reclaiming space lost to bloat. It supersedes VACUUM FULL and CLUSTER, which stay available for compatibility. The concurrent mode keeps ordinary reads and writes flowing, but it still takes an ACCESS EXCLUSIVE lock during its final phase.
It doesn't replace routine vacuuming; it solves a different problem. Before running it on hot tables, measure execution time, resource usage, how long that final lock actually lasts and the effect on replication.
WAIT FOR LSN
The classic replica bug: the app writes to the primary, immediately reads from a standby and the row isn't there yet. WAIT FOR LSN lets a standby session wait until WAL has been replayed up to a given position before running its query. Valuable if you spread reads across replicas; unnecessary if consistency-sensitive reads already go to the primary.
pg_plan_advice and pg_stash_advice
pg_plan_advice lets you steer planner decisions, and pg_stash_advice stores advice and applies it automatically to matching queries. It's handy when one specific plan keeps regressing. The cost is maintenance: advice tuned for today's data distribution can become the wrong advice next quarter. Treat it as a targeted fix with an owner, not a default tool.
Planner and executor improvements
Faster foreign key checks, optimized sorting, hash join improvements and SIMD-accelerated text and CSV parsing in COPY FROM all sound great. Benchmark them against your own workload and treat the gains as cumulative, not guaranteed. An optimizer change can also make an individual query worse, so compare plans, not just averages.
Postpone
- Plan advice for queries that already perform predictably.
- Redesigning a working replication architecture just to use the new capabilities.
- Replacing maintenance procedures that work until an alternative shows measurable benefits.
The pre-flight checklist
- Pick a migration path. A major version still needs
pg_upgrade, dump and restore, or logical replication; an in-place minor-style update won't do it. - Check extensions. Anything that touches planner hooks, index access methods or background workers may need a new build, since PostgreSQL 19 changes optimizer hooks and index access method handlers.
- Check your tooling. Your IDE, schema compare and data tools have to understand the new server version too. dbForge Studio for PostgreSQL, for example, added PostgreSQL 19 connectivity in its 2026.2 release. Whatever you use, confirm support before the cutover, not after.
- Run application regression tests and benchmark representative queries, especially anything that relied on JIT.
- Validate replication, verify backups and rehearse rollback or recovery.
Wrapping up
PostgreSQL 19 is a substantial release, but most of its everyday value comes from a handful of changes: parallel index vacuuming, smarter I/O worker management, easier logical replication and native repacking. The rest is promising for specific architectures. Upgrade with the new defaults in mind, adopt the features that fix problems you actually have and let the others wait.
This post builds on Alena Subotina's analysis of the PostgreSQL 19 release, originally published on LinkedIn. Read the original article.
