The PostgreSQL Global Development Group shipped PostgreSQL 19 on November 19, 2026. The new major version targets busy production systems, with an online way to remove table bloat, a supported method for pinning query plans, and a set of SQL additions that remove common application workarounds.
For teams that run Postgres at scale, the headline items are maintenance and predictability. Several defaults also change, including JIT compilation, TOAST compression and the treatment of md5 passwords, so an upgrade deserves a proper test cycle rather than a quick swap of binaries.
What Is New for Administrators
The biggest operational change is a new REPACK command. It reclaims space left behind by heavy updates and deletes, and it can also rewrite a table in index order. With the CONCURRENTLY option, it does this while reads and writes keep running, which VACUUM FULL and CLUSTER never allowed.
REPACK takes over the role of both older commands. They still exist so that existing scripts keep working, but new maintenance jobs should be written around REPACK.
Plan stability gets its own tooling. The pg_plan_advice extension lets you lock in planner choices or try alternatives through a small advice language. A second extension, pg_stash_advice, stores that advice and applies it automatically by query identifier, so a regressed plan can be fixed without touching application code.
Autovacuum also gets smarter on large systems:
- Index vacuuming can use parallel workers, limited by the new autovacuum_max_parallel_workers setting.
- A scoring system decides which tables get processed first, and pg_stat_autovacuum_scores shows those scores.
- Ordinary queries can mark pages as all-visible while they read them, which leaves less work for later vacuums.
- vacuumdb --analyze-only now covers partitioned tables when no table list is given.
Monitoring gains pg_stat_lock for per-lock-type numbers and pg_stat_recovery for recovery state. EXPLAIN ANALYZE accepts a new IO option for asynchronous I/O activity, auto_explain has a matching setting, and full-page image WAL volume now appears in pg_stat_wal, EXPLAIN (ANALYZE, WAL) and vacuum logs.
Replication and Distributed Data Changes
Turning on logical replication no longer needs a server restart. When the first logical slot is created, PostgreSQL 19 raises the effective WAL level by itself, and a new effective_wal_level parameter shows what is actually in use.
Publications can now carry sequence values through FOR ALL SEQUENCES, and FOR ALL TABLES accepts an EXCEPT list. Subscriptions can read connection details from a foreign server through a SERVER clause. A retain_dead_tuples option helps detect update-versus-delete conflicts, which are counted in pg_stat_subscription_stats.
For read scaling, the WAIT FOR LSN command gives sessions on a standby a way to pause until replay reaches a given log position. That delivers read-your-writes behaviour for apps that write to the primary and read from replicas. On the foreign data side, postgres_fdw can pull table statistics from the remote server during ANALYZE with an import_stats option.
SQL and Performance Improvements for Developers
INSERT ... ON CONFLICT DO SELECT is the change many application developers will notice first. When an insert collides with an existing row, RETURNING can now hand back that existing row, so a get-or-create lookup needs one round trip instead of two.
- COPY can write JSON output, including one single JSON array.
- JSON path expressions can now call string functions, among them btrim(), split_part(), replace(), upper() and lower().
- Window functions like lag(), lead() and nth_value() can skip nulls with IGNORE NULLS.
- random() can produce dates and timestamps inside a range.
Some speed-ups need no code change. The project reports bulk inserts running close to twice as fast in its testing thanks to quicker foreign key checks.
The planner can rewrite NOT IN into an anti-join when nulls are absent and can aggregate before a join. The asynchronous I/O layer from version 18 now resizes its worker pool between io_min_workers and io_max_workers, which replace io_workers, and LISTEN/NOTIFY scales better across many channels.
Defaults and Removals to Check Before Upgrading
- JIT compilation is off by default because its cost estimates proved unreliable. Analytics-heavy servers may want to turn it back on.
- Builds with LZ4 support now use lz4 as the default TOAST compression method.
- A successful md5 password login now logs a warning, controlled by md5_password_warnings. md5 is deprecated and will be removed later, so move accounts to SCRAM.
- RADIUS authentication support is gone.
- A new pg_hosts.conf file maps hostnames to certificates, adding server-side SNI so one instance can serve several TLS identities.
- password_expiration_warning_threshold warns users before their password expires.
What It Means for Developers
The quickest wins sit in application code. Replace two-step get-or-create logic with ON CONFLICT DO SELECT, and use WAIT FOR LSN where a user must see their own write on a replica. Both remove custom retry loops that many teams maintain today.
DBAs should look first at REPACK CONCURRENTLY for bloated tables that could never be locked, and at pg_stash_advice for the handful of queries whose plans flip after statistics change.
Audit any setup that still uses md5 or RADIUS, and benchmark analytical queries with JIT both on and off. Our earlier report on low-privilege SQL roles reaching code execution on PostgreSQL is a good reminder to review role grants during the same upgrade window.
How to Upgrade
Packages and installers are on the official PostgreSQL download page, and the full release notes list every change. Use pg_upgrade or logical replication from an older major version, test on a copy of production data, and check extension compatibility first. Managed services such as Azure Database for PostgreSQL usually add new major versions on their own schedule.
Conclusion
PostgreSQL 19 removes long-standing pain points: blocking bloat cleanup, unpredictable plan changes and restart-only logical replication. Add the developer-facing SQL features and the faster foreign key checks, and it is a strong upgrade target once your extensions and authentication setup are ready.
Sources
See my articles more often when you search Google.
