pg_plan_advice, and restart-free logical replication, aren’t flashy AI integrations or new vector types. They’re the unglamorous, soul-crushing operational problems that used to get you paged at 3 a.m.
Every Postgres team has a folder of workarounds. A cron job that runs pg_repack in the middle of the night because VACUUM FULL locks the table. A retry loop that reads from the primary because the replica might be a few milliseconds behind. A query rewritten four times because the planner changed its mind after a stats refresh. This release is aimed squarely at that folder.
Let’s dive into what actually changes in your pipelines, your runbooks, and your sleep schedule.
REPACK (CONCURRENTLY): The End of the 3 a.m. Cron Job
Table bloat is the silent killer of query performance. Every UPDATE writes a new row version and leaves the old one behind, VACUUM marks that space reusable but never returns it to the operating system. The old fixes, VACUUM FULL and CLUSTER, held an ACCESS EXCLUSIVE lock for the entire rewrite, which meant your table might as well have been on fire for however long the operation took.
PostgreSQL 19 introduces REPACK as a core command, and it works exactly as you’d hope:
-- rewrite the table, like VACUUM FULL (locks for the whole run)
REPACK orders;
-- rewrite it in the order of an index, like CLUSTER
REPACK orders USING INDEX orders_created_at_idx;
-- rewrite it while reads and writes keep running
REPACK (CONCURRENTLY) orders;
The concurrent mode holds a SHARE UPDATE EXCLUSIVE lock during the bulk copy, captures concurrent changes through logical decoding (the same mechanism pg_repack and pg_squeeze used), and only takes the heavy ACCESS EXCLUSIVE lock for the final file swap.
But before you delete that pg_repack extension, read the fine print. The limits are real:
- Disk space: You need free space at least equal to the size of the table plus its indexes.
- Replica identity: The table requires a primary key or index-based replica identity.
- Unsupported types: Partitioned tables, unlogged tables, materialized views, and system catalogs are all refused.
- MVCC caveat: It’s not MVCC-safe. Transactions holding an old snapshot can see the rewritten table as empty once it completes. That’s a gotcha that will bite your long-running report jobs.
- Concurrency limit: The command fails if more than ~104 million rows are updated or deleted during the rewrite.
A local benchmark on a 2M-row table tells the story. Using two CPUs and eight pgbench clients, REPACK (CONCURRENTLY) completed in 1.2 seconds with a 38ms worst writer transaction. Ordinary REPACK took 0.7 seconds but blocked writers for 585ms. VACUUM FULL was 0.8 seconds with a 706ms writer interruption. The concurrent rewrite takes longer overall, but the interruption to your application shrinks by an order of magnitude. That tradeoff is almost always worth it.
The new pg_stat_progress_repack view tracks the operation’s phases, heap progress, and catch-up counters, so you can finally see what’s happening instead of wondering if your maintenance window exploded.
Plan Pinning Without Touching Application Code
The PostgreSQL query planner is smart, but it’s also a teenager who changes their mind about what they want for dinner based on the phase of the moon. As data distribution shifts, plans change, and sometimes the new plan is catastrophically slower.
PostgreSQL 19 ships pg_plan_advice, a contrib module that lets you describe and pin planner decisions using a small “plan advice” mini-language. The companion pg_stash_advice extension stores that advice and applies it automatically based on query identifier. No application code changes. No ORM rewrites. No praying to the query planner gods.
This is a game-changer for data engineering teams. Plan regressions after a statistics refresh are the kind of bug that looks like an application problem for a day before anyone blames the planner. The blast radius of fixing it with pg_stash_advice is a config change, not a deployment.
Logical Replication Without the Restart Ritual
If you’ve ever set up logical replication, you know the dance: change wal_level to logical, restart the server, hope nothing breaks. In production, that restart is a four-letter word.
PostgreSQL 19 eliminates it. On a server configured with wal_level=replica, creating your first logical replication slot automatically raises the effective WAL level to logical. The new effective_wal_level setting shows what’s actually in use. Drop or invalidate the last logical slot, and the checkpointer asynchronously returns the level to replica.

There’s a catch: abandoned slots still retain WAL and catalog resources indefinitely. Slot lifecycle management just became more critical, not less. Add WAL retention monitoring to your runbooks before you enable this.
Sequences: The Last Migration Headache Dies
Logical replication of sequences is one of those features that makes you wonder why it took 30 years, but damn, it’s finally here.
PostgreSQL 19 can publish sequences using FOR ALL SEQUENCES in CREATE PUBLICATION. Initial values synchronize when a subscription is created with copy_data=true (the default). ALTER SUBSCRIPTION ... REFRESH SEQUENCES resynchronizes known sequences, and ALTER SUBSCRIPTION ... REFRESH PUBLICATION picks up newly published sequences.
The critical operational detail: without a final REFRESH SEQUENCES before cutover, your subscriber can reuse sequence values already issued by the publisher, causing primary key conflicts. Sequence synchronization is initial or requested, not continuous streaming of every increment. Put the refresh step in your migration runbook, not your wish list.

The publisher must be version 19 or newer, and worker counts are subject to max_sync_workers_per_subscription. Plan accordingly.
Read-Your-Writes on Standbys: Finally
For anyone running read replicas, the “read-your-writes” consistency problem has been the eternal thorn. Write to the primary, immediately read from the replica, and get stale data. The usual workaround: route reads to the primary for a few seconds after writes. That’s not a solution, it’s a traffic cone.
PostgreSQL 19 adds WAIT FOR LSN. Capture the LSN after your write commits, then run on the standby:
SELECT pg_wait_for_lsn('your_lsn', MODE 'standby_replay', TIMEOUT 5000, NO_THROW);
The TIMEOUT is non-negotiable, an omitted or zero timeout waits indefinitely. On timeout or promotion, the command raises an error unless you use NO_THROW and check the status return. This is the tool that finally makes active/active read scaling viable for real-time analytics.
One caveat from the trenches: Postgres 19.0 reportedly had an exact-WAL-page-boundary wait issue that could stall pending WAL. A fix was committed for 19.1. If you’re running 19.0 in critical production, that’s your sign to keep a sharp eye on the February 2027 maintenance release.
JIT Is Off by Default: Your Analytical Queries May Get Slower
Here’s the spicy one. PostgreSQL 19 turns JIT compilation off by default because the planner can’t reliably estimate LLVM compilation cost. In plain English: short OLTP queries were paying more for compilation than they gained from native execution. The default change favors OLTP predictability.
But if you run data-warehousing workloads that benefited from the old default, you need to explicitly set jit=on to keep that benefit. The cost thresholds (jit_above_cost, jit_inline_above_cost, jit_optimize_above_cost) remain configurable. Benchmark your representative analytical queries both ways before upgrading. Don’t discover this regression at 2 a.m. during a heavy ETL run.

The I/O Worker Pool Grew a Brain
PostgreSQL 18 introduced async I/O. Version 19 makes it adaptive. The old fixed io_workers parameter is gone, replaced by:
io_min_workers(default 2)io_max_workers(default 8)io_worker_idle_timeout(default 1 minute)io_worker_launch_interval(default 100 ms)
The system now monitors I/O utilization and scales workers dynamically. If I/O isn’t saturated, it gradually adds workers until it hits the ceiling or saturation. Idle workers get reaped automatically.
Critical gotcha: if your postgresql.conf still contains io_workers, the server will not start. This is a blocking upgrade issue that will catch you off guard. The same applies to RADIUS authentication lines in pg_hba.conf, RADIUS support was removed entirely because PostgreSQL only supported it over UDP, which the project considers “unfixably insecure.”
The Upgrade Checklist That Will Save You
Here’s the table you need. Print it. Tape it to your monitor.
| Priority | Item | Upgrade check or action |
|---|---|---|
| Blocking | Database/role/tablespace names with CR/LF | Correct before upgrade. pg_upgrade rejects them |
| Blocking | btree_gist indexes using inet/cidr |
Follow documented upgrade restriction |
| Breaking | RADIUS authentication removed | Replace affected pg_hba.conf entries |
| Breaking | io_workers removed |
Replace with io_min_workers/io_max_workers |
| Breaking | standard_conforming_strings forced on |
Review dumps and automation relying on off |
| Review | max_locks_per_transaction default: 64 → 128 |
Reassess lock allocation with new semantics |
| Review | vacuum_cost_delay/vacuum_cost_limit sharing |
Review when enabling parallel autovacuum |
| Review | Subscription statistics consumers | Update collectors for renamed counters |
| Advisory | log_lock_waits defaults on |
Expect increased log volume |
| Advisory | Password-expiration and MD5 warnings | Configure or suppress authentication warnings |
| Advisory | Text search indexes need rebuilding | Reindex full-text, pg_trgm, and fuzzystrmatch after upgrade |
MD5 password authentication now warns after every successful login. MD5 was deprecated in version 18 and is planned for removal. Move to SCRAM before you get nagged to death.
The Timeline Nobody’s Talking About
PostgreSQL 14 reached end of life on November 12, 2026, one week before version 19 shipped. If you’re still running it, there are no more bug fixes or security updates. The five supported versions are now 15 through 19, with version 15 ending on November 11, 2027 (under a year away).

That’s not a suggestion, that’s a deadline. Unpatched databases are how breaches happen. This is part of a broader trend of PostgreSQL’s growing dominance in modern data architectures, and with dominance comes responsibility to keep your instances current.
What Didn’t Ship (Despite the Hype)
The release came about seven weeks later than usual, and several features were reverted during beta. If you read early preview articles, these were promised, and then pulled:
- SQL/PGQ property graph queries, reverted in September
- GROUP BY ALL, reverted in July
- Online checksum enablement, reverted in September
- UPDATE/DELETE … FOR PORTION OF, reverted
- ALTER TABLE … MERGE/SPLIT PARTITION, not in final notes
If a tutorial shows one of these running on “version 19”, it was written against a beta. Trust the official release notes, not the blogosphere.
The Upgrade Strategy
For production, waiting for 19.1 (expected February 2027) is a reasonable default. First minor releases usually carry fixes found by early adopters. PostgreSQL 18 is supported until November 2030, so there’s no rush unless you’re still on 14.
When you do upgrade:
- Check extensions first. Confirm builds exist for version 19 before anything else. A CloudNativePG issue already requested a PostgreSQL 19 pgvector image, extension compatibility isn’t verified by
pg_upgrade. - Run
pg_upgrade --checkagainst the live old cluster. Pass your intended transfer mode (--link,--clone,--copy-file-range, or--swap) so mode-specific checks run. - Rehearse
REPACK (CONCURRENTLY)on representative staging data. Measure disk usage, write churn, final lock wait duration, and old-snapshot behavior. - Audit your slots and WAL retention before and after the upgrade.
- Benchmark
jit=onvsjit=offfor your analytical query set. - Update monitoring collectors for renamed and new statistics before production cutover, not after.
The pg_upgrade transfer modes have a critical tradeoff you need to understand. Copy and clone modes preserve the old cluster for rollback. Link mode reduces copying but makes the old cluster unsafe to use once the new server starts, because the files are shared. Keep an independent backup regardless.

The Bottom Line
PostgreSQL 19 is an operational release disguised as a feature release. The headline features, REPACK (CONCURRENTLY), pg_plan_advice, and restart-free logical activation, remove the workarounds that data engineering teams have been duct-taping together for years. The downgrade risk is JIT being off by default, which will silently tank analytical workloads that relied on it. The upgrade blockers are the removed io_workers parameter and RADIUS auth, both of which will stop your server cold.
Given the enterprise PostgreSQL uptime challenges and reliability considerations, every hour of planned downtime is an hour your organization can’t afford. Postgres 19 doesn’t eliminate maintenance windows, it makes them short enough that your stakeholders might not even notice them.
Now go delete that 3 a.m. cron job. You’ve earned it.


