KW
Kirk Wolak

Kirk Wolak

Things Kirk Says on Podcasts

Where to Find Them

Kirk Wolak hosts Postgres FM .

Recently: “Can AI safely change production Postgres?” on Postgres FM (November 2026); “Postgres 19” on Postgres FM (November 2026); “The hidden costs of CREATE TEMP TABLE” on Postgres FM (November 2026); “Extensions on demand” on Postgres FM (November 2026); “UUIDv4 vs UUIDv7” on Postgres FM (October 2026); “Dump/restore done. Now what?” on Postgres FM (October 2026).

What They Said

“A successful experiment is evidence, not a guarantee. Rollback is a procedure, not a promise. So if you drop a table, your recovery process has a restore involved, right? So you've got to be careful.” — Kirk Wolak, Postgres FM

Kirk's closing caution for teams letting AI plan database changes: if you plan to roll back, testing the rollback has to be part of the plan.

Postgres FM · 2026-11-28 Permalink → Listen →
Postgres FM Around 46:18 into the episode
Speaker 3

Right.

Nikolay Samokhvalov

…all these things are also very helpful as we saw in numbers. So, this is first take on this PGI bench benchmark. By the way, I learned from other benchmarks, like DBA bench, for example, and others, SWE bench. So, I'm going to continue this work and expand and make it even more interesting.

Kirk Wolak

Nice. Well, I just have to say, congratulations. It's obviously been a bit of work to put this together, real-world examples. And very few people could actually do some of this because they don't have your 20 years of experience. They don't have access to some of this, and they're not playing hard enough with the tool sets that you're using. So, I wanted to cover that. I want to mention a few more things just for everyone listening, right? A successful experiment is evidence, not a guarantee. Okay. Rollback is a procedure, not a promise. So, if you drop a table, your recovery process has a restore involved, right? So, you got to be careful. And if you're planning to be able to roll it back, testing the rollback procedure becomes part of this.

Nikolay Samokhvalov

It's reversibility, the word. Reversibility. Reversibility. If your upgrades, for example, are reversible or they are not.

Speaker 3

Right.

Kirk Wolak

Right, exactly. Also, two AIs agreeing does not make either one. Correct. Okay. The absence of observed harm is not evidence of the absence of harm. Meaning, you may not see the flaw in this for 90 days, okay? 30 days, but it may show up. Classic example

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.
“I started by saying I wouldn't let AI make changes in my production database. And now I'm like, oh, but I will let AI assist my DBA, make his life easier, make his life better, allow him to be more productive, safer, sleep at night, maybe. Occasionally, without a 3 AM alarm.” — Kirk Wolak, Postgres FM

Kirk had just heard that splitting the agent into analyst, auditor and actor roles cut harmful changes from 13 to 1 in a replay. He says it changed his mind, but only for AI as an assistant to a human DBA.

Postgres FM · 2026-11-28 Permalink → Listen →
Postgres FM Around 41:14 into the episode
Kirk Wolak

finish it. Let's make the point where we're driving to. So now that we used AAA as our process with three separate actors, okay, and we had the auditor and it passed it and it gave it over to the actor again to run it in production. This got rid of 100% of the errors, didn't it?

Nikolay Samokhvalov

No, one harm left in Opus 5.5. I don't remember exactly which error. Yeah, but yeah, some harm left. So there is still some risk, but it was dramatically reduced.

Kirk Wolak

Yeah, perfect. So, and that's this is the takeaway. So you went from 13 harms down to one at the end of the day by structuring this a little better. And for me, when I first read it and we talked about this, but I want to bring it up, my next thing was, oh, because I tend to be like, I'm a mentor in, you know, for quite a few different people. And in mentoring, my next thing is, oh, I see what we need. We need to make this system something that becomes the mentee. And then we need to insert a DBA on top of it to help mentor it. So the DBA can now see that instead of the actor changing production directly, it can look at what the auditor says, look at how trivial the change is, look at how trivial this is, and say, yes, and maybe just like we do at Quad code, in the future, you can run this one whenever you want. Okay. You're inserting a record or you're approving an IP address, whatever. Yes, in the future, you can do this one without me. Or no, oh my God, never let this happen. Okay. This can cause this. Have them test this failure. Okay. Boom. And they go…

Nikolay Samokhvalov

Yeah, also, like, of course, worth mentioning that all safe operations were not blocked. Almost all. I think almost 400, only one was blocked. So, we should talk about false positives and false negatives here. And the results are quite great in this test. It's limited test, right? It's just 18…

Kirk Wolak

only were these 18 tests, they were hand-selected from real-life examples where people made mistakes or where it's easy to make a mistake. We've made them in the past. I don't think so. We know this trips people

Nikolay Samokhvalov

in reality. Many changes are easy, right? I mean, they can be CR, we need one more replica, and it's already automated. Like, just press a button. Like, of course, it's green light all the time, right? So, definitely, these numbers are for this specific set of tasks and so on. And numbers are…

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.
“I don't want AI to automate my ability to make mistakes at scale. I don't want a thousand clusters taken down and restarted with bad settings or something like that, just because it worked in a lab and nobody looked at it. And then also, we should be measuring how much responsibility we can safely delegate, not simply how intelligent the AI is.” — Kirk Wolak, Postgres FM

Wrapping up a discussion of a benchmark for AI agents acting on production Postgres, Kirk argues the thing to measure is safe delegation, not model intelligence.

Postgres FM · 2026-11-28 Permalink → Listen →
Postgres FM Around 49:29 into the episode
Kirk Wolak

Right, exactly. Also, two AIs agreeing does not make either one. Correct. Okay. The absence of observed harm is not evidence of the absence of harm. Meaning, you may not see the flaw in this for 90 days, okay? 30 days, but it may show up. Classic example

Nikolay Samokhvalov

is if someone makes a major upgrade and forgets analyze on weekend and Saturday, Sunday it works very well, but on Monday we have higher traffic and without statistics.

Kirk Wolak

Yeah, yeah, no, exactly. Also, I don't want AI to automate my ability to make mistakes at scale. Okay, so I do. I don't want a thousand clusters taken down and restarted with bad settings or something like that, just because it worked in a lab and nobody looked at it. And then also, we should be measuring how much responsibility we can safely delegate, not simply how intelligent the AI is.

Nikolay Samokhvalov

Yeah, this is great ideas and they resonate a lot in my mind as well. Like, for example, we should speak SRE language like budget for downtime, like uptime budget and like human budget as well, and like all kinds of budget, like CTO-level language. And I definitely think I'm going to continue with…

Kirk Wolak

Awesome. Well, this was excellent talk. I loved it. You might have changed my mind. Not today. I'm not putting AI straight in my production yet, but I can see me leveraging something that works along the lines of what we described with a little human intervention and multiplying my ability to get…

Nikolay Samokhvalov

Thank you. Thank you.

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.
“I've never once had pushing a bad position turn out beneficial in the tech world in my life. So I prefer to pull back a bit and regroup and come back later. … If we lose stability, then we're going to lose the mind share in this industry. We don't become people's first choice on new projects.” — Kirk Wolak, Postgres FM

Kirk Wolak defends the Postgres committers' decision to revert unfinished features late and delay the release, at a time when the project is handling far more CVEs than usual with the same number of committers.

Postgres FM · 2026-11-19 Permalink → Listen →
Postgres FM Around 05:59 into the episode
Nikolay Samokhvalov

…to stop pushing. And my hypothesis is some guys also stopped pushing too much just to let just to let the feature list stabilize. 100% sure, 100% sure we could find more bugs. We just didn't pull more attention to it. So right after release, I'm going to find more bugs. Yeah. And others will do.

Michael Christofides

Yeah, go on, Herc.

Kirk Wolak

Yeah, yeah. But I just want to back up the truck. So as we were moving into the date to go live, there was a big revert fest, right? And usually there's a revert fest early on in February. I think that's when Andre coined the phrase, or I heard it the first time. So I'll give him credit, but it made me laugh out loud. We have commit fests and then we had a revert fest where, yeah, these really aren't ready. They're going to need more time. Anyways, but they pulled those and they were in a release candidate kind of level and they pulled and they pulled a handful. And I just want to give them credit because, look, you don't push bad positions. Okay. I've never once has pushing a bad position turned out beneficial in the tech world in my life. So I prefer to pull back a bit and regroup and come back later. And that's what they did. And the catch up was we have the same number of committers. We have like double the number of ideas and patches coming through. And now we had something like 10 or 20 X the number of CVEs in the same year. Like that's insane. There's no way the…

Nikolay Samokhvalov

So Reverfest big wave started with this scary scary list, right? No, from Robert Haas. Yeah. It was from Thomas Wondra, the blog post about that. It's like maybe the same, but problems found later and reward happens later. So the question is how to find problems earlier. And this tiny project, PG…

Michael Christofides

There's an argument that LLMs got significantly better at an awful time in the Postgres release cycle. Like that, if you think about when feature freezes, it feels like it times very, very well with things like Opus 5.5. And I think a lot of people getting access to quite cheap, very, very advanced…

Nikolay Samokhvalov

Similarly, but Opus 4.8 was already quite good and could find a lot. It's just the question is, can you just allocate a lot of resources to it and so on? And also there is time for reaction and change habits and so on. And also there are guys who had zero or one. I saw a couple of guys who…

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.
“Plan hints to me is the 1975 solution to having a query where you need to tell the database, hey, you're going to calculate this wrong. … We're 2026, baby. And the reality is you're hard coding the hint usually into the application. The last thing you want to do is be tweaking your application because of a subtle change in the database, because now your hint is actually a bad idea.” — Kirk Wolak, Postgres FM

The hosts were discussing Postgres 19's new plan advice module, which stops short of traditional query hints. Kirk Wolak explains why hints baked into application code age badly, and why he'd rather pin a good plan at the database level.

Postgres FM · 2026-11-19 Permalink → Listen →
Postgres FM Around 19:41 into the episode
Michael Christofides

We

Nikolay Samokhvalov

…methodology, but like without any gaps, but it's quite like expensive to use. You need to actually allocate resources to study all the plan flips and then what to do with flips. Now we have a solution what to do with flips, but still plan flip analysis remains another challenge, right?

Kirk Wolak

…literally a slash asteris hint after the word select on my thing. And I'm going to put some things in there and tell you what tables and indexes you should really be doing as you're either your driver table or primary, whatever. I'm going to focus you because you're going to make mistakes. And the problem is, I want you to hold it right there. It was a great idea in 1975. Okay. The problem is. We're 2026, baby. And the reality is you're hard coding the hint usually into the application. The last thing you want to do is be tweaking your application because of a subtle change in the database, because now your hint is actually a bad idea. And that happens. And this plan with stashing works differently. And what the high-level version is this: you can actually calculate a good plan, and then you can associate it with the SQL ID. Okay. And then you can give it priority. And this gives you a chance as the DBA to change the behavior of the application without getting the application developer involved. He can ring you up and say…

Nikolay Samokhvalov

As I see, our testing found some overhead from using advice. Yeah, like around 10%, right? So it's not for free when we talk about very fast queries. So, anyway, there are some long list of limitations, but it's a great step in an interesting direction, which I think bigger databases actually need.…

Michael Christofides

I have one that's. You got one more?

Kirk Wolak

Go ahead.

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.
“I was surprised that there's a threshold. And once I saw the threshold, it makes sense to warn people. You test this in your own little environment, not thinking twice about growth. … Once UUID 4 is running for a while and the index size is growing, once it just consumes all the memory, it kicks the table out of memory.” — Kirk Wolak, Postgres FM

Asked what surprised him in their UUIDv4 versus UUIDv7 benchmarks. His answer is the cliff: a team can test the two, see little difference, and then hit a sudden slowdown once the index outgrows memory.

Postgres FM · 2026-10-30 Permalink → Listen →
Postgres FM Around 13:15 into the episode
Kirk Wolak

…right? Not necessarily a tech problem. Now you want to get the numbers out. And so then you ran it. So obviously the int 8 being faster kind of surprised you, turned out to be a false alarm. What else surprised you, Nick, in the results? So now it collected a bunch of results. What surprised you?

Nikolay Samokhvalov

I don't think I was super surprised. I saw roughly what I expected. What surprised me that it caught itself, like on this mistake and corrected itself, and I just observed it. This I like a lot. So

Kirk Wolak

I'll be honest, I was surprised. I was surprised that there's a threshold. And once I saw the threshold, it makes sense to warn people. You test this in your own little environment, not thinking twice about growth. And if you're a starter. Startup, you can make a mistake I've seen many startups make. And it's like, oh, this is what UUID 4, UUID 7 are about the same. And you turn around and find out that the, and this came out of the results, and it surprised me. Once UUID 4 is running for a while and the index size, while it's growing, once it just consumes all the memory, it kicks the table out of memory.

Nikolay Samokhvalov

And then all of a

Kirk Wolak

sudden it starts writing to disk, and its performance is no longer the same as when it was all in memory. Now, that makes sense. That's a

Nikolay Samokhvalov

good point. Yeah, I agree with you. This is a super interesting first thing, first finding, right? So if you watch us on YouTube or listen, if we're still in your pocket, just check out the graph which pops out on the screen right now. And regular podcast listeners follow the link, so you will see…

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.

Collections They Appear In