PostgreSQL 19 Is Out: REPACK, Get-or-Create in One Query, and a Month-Late Arrival
PostgreSQL 19 shipped on November 19, a month late, after AI-assisted bug hunting flooded the project with fixes. The release adds online table maintenance, atomic get-or-create, and read-your-writes on replicas.

PostgreSQL 19 features start with a story about being late
PostgreSQL 19 was released on November 19, 2026, more than a month after the window in which major PostgreSQL releases normally ship. For the past decade, major releases have arrived between mid-September and mid-October. This one came in late November, and the reason is one of the more interesting stories in open source this year.
According to a Databricks post written by PostgreSQL contributors, the delay happened because AI tools got good enough to find bugs at scale. Around February 2026, developers noticed that the latest AI models could write real code and find real flaws. The result was a flood of fixes. Bug fixes per quarterly update release went from roughly 50 in February to about 75 in May to around 140 in August. Time that would have gone into reviewing PostgreSQL 19 went into fixing issues in the supported branches, and the release team eventually issued a second release candidate so version 19 could ship with the fixes included.
That is a strange and encouraging reason to be late. The project did not slip because it was disorganized. It slipped because its own tooling got better at finding problems, and it chose to fix them instead of shipping on schedule. It is also a preview of what AI-assisted development does to mature projects: the bottleneck moves from writing code to reviewing it.
REPACK is the headline for anyone running a busy database
The feature most database administrators will care about is REPACK. It rebuilds a bloated table while normal reads and writes continue. Table bloat is one of those problems that every Postgres user meets eventually: updates and deletes leave dead space behind, the table grows, queries slow down, and the traditional fix involves locking the table or taking downtime. REPACK lets you reclaim that space online, without blocking users. For a database that cannot go down, that is the difference between a maintenance window and a normal Tuesday.
The release also improves logical replication, which can now synchronize sequences. That removes a common migration headache. Anyone who has moved a database to a new server and then discovered that auto-incrementing IDs collided will appreciate this one. It is a small change with an outsized effect on migration confidence.
The developer features are genuinely pleasant
For application developers, the best addition is ON CONFLICT DO SELECT. It finally gives you get-or-create as one atomic statement: INSERT ... ON CONFLICT DO SELECT ... RETURNING. The old pattern required either a race-prone check-then-insert or a workaround with ON CONFLICT DO NOTHING followed by a second query. Now it is a single statement that returns either the row you inserted or the row that already existed. It is the kind of feature that makes you wonder why it took this long, and then makes your code shorter the same afternoon.
WAIT FOR LSN gives you read-your-writes behavior on replicas without polling or arbitrary sleeps. If your app writes to a primary and reads from a replica, you know the problem: the replica lags behind, and a user who just saved something sees stale data. The usual fixes are ugly. WAIT FOR LSN lets a session wait until the replica has caught up to a specific point in the write-ahead log, then read. It is precise, it is cheap, and it kills a whole class of flaky behavior.
Two more developer-facing changes deserve a mention. Window functions now support IGNORE NULLS, so lag, lead, first_value, last_value, and nth_value can skip nulls instead of returning them. And query plan advice lets you stabilize the plan for a critical query without changing application SQL, which is a lifesaver when the planner picks a bad plan for one important query and you cannot rewrite it.
The release also reports nearly twice as fast bulk inserts in the project's testing, thanks to improved foreign-key checks, and a faster autovacuum to manage data bloat. On the cleanup side, PostgreSQL 19 disables JIT compilation by default, replaces the fixed io_workers setting with automatic scaling for worker-based asynchronous I/O, warns on successful MD5 password authentication, and removes RADIUS support. PostgreSQL 14 reaches end of support alongside the release, so anyone still on 14 needs a plan.
Should you upgrade now?
The honest answer depends on what you run. PostgreSQL 19 is being described as the least bug-prone .0 release in the project's history, which is a strong claim and, given the AI-assisted bug hunt that delayed it, a plausible one. But the cautious voices in the community are still right: a .0 release has not yet faced real-world load at scale, and critical production systems should wait for 19.1.
The sensible split is this. Personal projects, staging environments, and services with solid backups can upgrade now and enjoy REPACK and the new SQL features. Anything that cannot tolerate a surprise should wait for the first minor release, keep running the latest minor of its current major version, and note that the November 12 minor releases fixed 52 security vulnerabilities across the supported branches. If you are on 18.7, 17.12, 16.16, 15.20, or 14.25, you are in good shape. If you are behind those, patch first and think about 19 later.
For a project that has been developed in the open since 1996, with no single company owning it, PostgreSQL 19 is a fitting release: careful, late for a good reason, and full of features that solve problems people actually have. The Astral ty 1.0 release and SGLang 1.0 got the headlines in developer tooling this month, but PostgreSQL 19 is the release that will quietly run the most production systems. Upgrade when it is safe, and enjoy the shorter code while you wait.


