Postgres 19 is late: AI is finding too many bugs
Postgres 19 is late, and the reason is unusual: too many bugs are showing up. That comes from Robert Haas, one of the project's longest-serving committers, in a post with a very direct title: Postgres 19 is late, and it's AI's fault. According to him, AI tools are finding problems in the code at a pace the community has never seen. And the team would rather hold the release than ship with known defects.
If your production database is Postgres, this is good news. It just doesn't look like it at first.
Why is Postgres 19 late?
To see how big this is, you need to know the Postgres release calendar. It's almost boringly predictable. One major version a year, nearly always between September and October. Postgres 18 shipped in September 2025, right on schedule. Version 19 was supposed to follow the same path.
Before the release comes the beta phase. That's when the community tests, reports and fixes. The version only ships once the list of "open items" drops to an acceptable level. This time around, the list kept growing.
The reason Haas points to: people using AI models to read the Postgres code and hunt for flaws. This isn't AI writing the database. It's AI doing an audit. And that audit is finding real issues, enough to push the date back.
One detail matters here. Many of these bugs aren't new. They had been there for years, in code nobody revisited. AI just turned on the basement light.
What AI is finding in the Postgres code
Postgres has more than 1 million lines of C. A good chunk of it was written before many people reading this blog were born. Human review at that scale has limits. Reviewers get tired, focus on the new patch and trust code that has been in production for 15 years.
A model doesn't get tired. It can read an entire file in src/backend and ask "what if this pointer is null here?" a thousand times in a row. The findings this process produces usually fall into a few categories:
- rarely executed error paths, where a resource never gets released;
- edge cases in parsing and type conversion;
- race conditions in concurrent code;
- behavior that doesn't match the documentation.
None of this is glamorous. But it's exactly the kind of bug that takes a server down at 3 a.m., on some input combination nobody had tested.
A bug that already existed and got found isn't a new problem. It's one less problem.
The hard part isn't finding, it's fixing
This is the part of the story I find most interesting. Finding bugs got cheap. Fixing them is still expensive.
Every report needs someone who understands that piece of code. Someone has to confirm the problem is real, write the patch, review it and backport it to every version still supported. In Postgres, that falls on a small group of committers. Many are volunteers, or are paid by companies and split their time with other work.
On top of that, AI-generated reports have a false positive rate that isn't zero. Someone has to triage them. A wrong report takes almost as long to read as a right one. Other open source projects have publicly complained about floods of low-quality automated reports. curl is the best-known example.
What sets the Postgres case apart is that a meaningful share of the findings turned out to be legitimate. Then there's no way around it. A confirmed bug in a beta needs a decision: fix it, document it or delay. The project picked the conservative route. That's why Postgres is Postgres.
What changes in your upgrade plan
In practice, almost nothing changes for you, and that's exactly my point. If you planned to move to 19 right at launch, adjust the calendar and move on. But use the pause to do what everyone keeps putting off.
First, find out which version you're really running:
SELECT version();
SHOW server_version_num;
Second, run the pg_upgrade check against a copy of your database before any migration. It doesn't change anything. It only flags incompatibilities:
pg_upgrade \
--old-bindir=/usr/lib/postgresql/18/bin \
--new-bindir=/usr/lib/postgresql/19/bin \
--old-datadir=/var/lib/postgresql/18/main \
--new-datadir=/var/lib/postgresql/19/main \
--check
Third, put the beta in your CI. If you use Docker for integration tests, running the suite against two versions is one extra line in the matrix:
strategy:
matrix:
postgres: ["18", "19beta"] # use the latest beta tag available
services:
db:
image: postgres:${{ matrix.postgres }}
If your app breaks on the beta, you win twice. You found out before production, and you can still report the problem while it's cheap to fix. That's contributing to open source without writing a single line of C.
And here's a rule I've followed for years: I don't migrate to a database .0. I wait for .1 or .2. With this delay, the project itself is doing part of that work for you.
Is AI finding bugs good or bad?
Some people read this news as "AI got in the way of Postgres." I read it the other way around.
The code didn't get worse. It got more visible. The bugs were there in 17, in 18 and in every version you ran in production without knowing. The difference is that now someone is looking. I'd take a late release with dozens of bugs closed over an on-time release with the same bugs sleeping on my server.
But there's an uncomfortable side, and I won't pretend it isn't there. If well-meaning researchers use AI to find flaws, attackers do too. The window between "the bug exists" and "someone knows about it" is shrinking for every project, not just Postgres. That means keeping your database current on minor versions is no longer optional hygiene.
If you've gone two years without applying a minor release, this is your wake-up call. The latest 18.x has fixes you don't have.
What this says about the future of open source
The Postgres case is a preview of what's coming for every large project. The ability to find problems has scaled. The ability to fix them hasn't kept up. The bottleneck has moved: it now sits with the maintainers.
A few consequences I expect to see:
- projects requiring a minimal reproduction and a suggested patch in automated reports;
- companies that profit from Postgres paying for more committer hours;
- longer beta cycles becoming the norm, not the exception.
The first one is the easiest to apply to your own project. If your team uses AI to review code, don't let the model just list problems. Require the test that reproduces the bug. One report with a failing test is worth ten without.
// AI finding without a test: opinion.
// AI finding with a failing test: bug.
it('rejects an invalid date when parsing', () => {
expect(() => parseDate('2026-02-30')).toThrow();
});
My final take is simple: being late out of excess caution is the best flaw a database can have. I trust Postgres with my data precisely because it would rather arrive late than arrive broken. Until 19 ships, I'm staying on 18, with CI already testing the beta. If you want to see how I use Postgres in my own systems, take a look at the projects I maintain.
LinkedIn summary
Postgres 19 is late because AI is finding too many bugs. And I think that's great. Many of these bugs aren't new. They had been there for years, in code nobody revisited. AI just turned on the basement light. Finding bugs got cheap. Fixing them is still expensive, and the bottleneck is now the maintainers. The project chose to hold the release instead of shipping with known defects. That's why I trust Postgres with my data. Until 19 ships, I'm staying on 18, with CI already testing the beta. What about you? Have you added the beta to your test matrix yet? #Postgres #OpenSource #ArtificialIntelligence #DevOps #Databases