Creating checkpoints by gaslighting a Postgres database

The Stack Overflow Podcast35mJune 9, 2026
AI-Generated Summary

The future of databases is being rewritten by AI agents—80% of new databases are now created autonomously, often through 'fan out' strategies where dozens of agents spin up isolated Postgres instances to solve problems in parallel. But this creates a massive infrastructure headache: databases pile up, costs spiral, and cleanup is ignored because it costs extra tokens. Brian Clark, director of product at Databricks' Lakehouse team, reveals how their solution—Lakebase—uses a 'gaslighting' file system trick to make Postgres believe it's writing to a real disk while actually routing all writes to a virtual, shared storage layer. This enables instant branching with copy-on-write pointers, zero data duplication, and near-instant compute startup (under 500ms). The result? Thousands of ephemeral databases can be spun up and torn down in seconds, with no performance penalty. But the real breakthrough isn't speed—it's control: by decoupling compute from storage and centralizing access through Databricks' Unity Catalog, Lakebase eliminates the security nightmare of shared passwords and uncontrolled data access. It turns Postgres from a data silo into a temporary staging area, with the true source of truth living in a secure, governed lakehouse. This isn't just about developer speed—it's about making AI agents safe, accountable, and compliant.

Key Takeaways
1

AI agents now create 80% of new databases, often spinning up isolated Postgres instances in fan-out strategies that lead to massive infrastructure sprawl.

2

Lakebase uses a 'copy-on-write' file system trick to create instant, zero-cost database branches by pointing to the original data instead of copying it.

3

Postgres is 'gaslighted' into thinking it's writing to a real file system, but all writes are actually streamed to a secure, centralized storage layer (S3) via a 'wall' mechanism.

4

Compute startup time is under 500ms because Postgres doesn't need to initialize data or rebuild its catalog—only the branch's changes are loaded.

5

Branches are always checkpoints: they’re frozen snapshots of the parent at the time of creation, preventing data inconsistency when the primary is updated.

…and 3 more takeaways available in PodZeus

Chapters
0:37
2 min

The AI Database Boom: 80% of Databases Created by Agents

80% of databases are created by AI agents. That's not a typo. It's just how much better AI has gotten at using software.

Highlight
3:05
2 min

The Teenager Problem: Agents Don’t Clean Up After Themselves

AI agents are like digital teenagers—they don’t clean up after themselves. Because cleanup costs extra tokens and time, they’re ignored. This leads to thousands of orphaned databases, bloated costs, and wasted resources.

5:24
4 min

The Solution: Instant Branching with Copy-on-Write

We don't actually copy any files. We just say, okay, I'm going to create pointers to the original files.

Highlight
9:09
4 min

Gaslighting Postgres: The Illusion of a Real File System

My dumb brain is like, oh, you're gaslighting a Postgres database, right? Yeah, we are. The poor thing thinks it's like doing its same job.

Highlight
13:27
9 min

From Data Silos to Lakehouse: The Source of Truth Shifts

Lakebase redefines the database as a temporary staging area. The true source of truth is now the governed lakehouse (Delta/Parquet), with Postgres acting as a transient, ephemeral interface for developers and agents.

High-Impact Quotes
I mean, my dumb brain is like, oh, you're gaslighting a Postgres. database, right? Yeah, we are. The poor thing thinks it's like doing its same job.
Ryan Donovan16:53
You want to make sure those HR folks aren't vibe coding themselves into a GDPR breach. Exactly.
Brian Clark33:43
instead of actually copying any files... it just says, okay, I'm going to create pointers to the original files.
Brian Clark12:35
Speakers

Host

Ryan Donovan

Guest

Brian Clark
Topics Discussed
ai agents and databases95%database branching90%lakehouse architecture88%copy on write85%data governance83%postgreSQL optimization80%ai security78%devops automation75%
People & Brands

PostgreSQL

product

22xNeutral

Brian Clark

person

18xNeutral

Lakebase

product

15xPositive

Databricks

organization

12xPositive

Neon

product

6xPositive

S3

product

5xPositive

Unity Catalog

product

4xPositive

GitHub

organization

3xNeutral

Mozilla

organization

2xNeutral

Red Hat

organization

2xNeutral

Start discovering podcast insights today

Start with a 7-day trial and explore a growing catalog of popular podcasts. No credit card required.

No credit card required • 7-day trial • Cancel anytime