PostgreSQL INSERT in 3d
PostgreSQL INSERT is not what you think. π
You run one SQL statement.
pgrun.dev/insert-3d
But inside Postgres, an entire system comes alive.
β Find space in an 8 KB heap page
β Write a new tuple
β Generate WAL records
β Update indexes
β Track visibility with MVCC
β Flush WAL at COMMIT
All that work. Just to insert ONE row.
I visualized how it actually works in 3D.
Postgres internals have never looked this cool. β
xitter.cf/alxshp/status/21107767β¦
Understanding Postgres should be fun.
π Introducing Postgres Internals in 3D.
π pgrun.dev/pi
Stop reading boring diagrams. Start exploring PostgreSQL.
An interactive 3D map to understand how Postgres actually works.
100% free. Built for developers.
xitter.cf/alxshp/status/21100494β¦
PGSync + PGRun = a path from production-like data to disposable Postgres environments for coding agents. π
PGSync is becoming part of PGRun. π
Move a 200GB PostgreSQL database. π FAST.
No downtime.
No triggers.
No missed changes.
β‘ Initial snapshot + live WAL streaming
β‘ Written in Rust
β‘ 100% open source
One goal: Every AI agent gets its own Postgres.
pgrun.dev
xitter.cf/alxshp/status/21100494β¦
Postgres β PGSync β Postgres. π. P2P
Introducing PGSync π
Real-time PostgreSQL replication. FREE. OSS
Built in Rust. π¦
Postgres 16 / 17 / 18.
No extensions. No triggers. No complex setup.
β snapshot
β replicate
β stream changes
β track WAL
β recover from crashes
β resume automatically
β keep databases in sync
~15 MB RAM during streaming.
Built for developers. Built for AI agents.
Open source.
xitter.cf/alxshp/status/21078790β¦
Postgres Terminal! βββββ
300 GitHub stars for PGTerm! βββββ
Postgres deserves a modern terminal.
So we built PGTerm: fast, open-source, and written in Rust. π¦π
β Manage all your Postgres databases in one place
β Monitor performance in real time
β PgBot built in for deeper diagnostics
β Fast. Lightweight. Open source.
pgterm.dev
Built for developers. Powered by Rust.
Every table tells a story. Postgres!
I built pgbot.dev Table Map. π
Stop guessing what's eating your PostgreSQL storage.
A GPU-style visual map for your database.
π© Green = live data
β¬ Gray = dead tuples / bloat
Every table. Every GB. One visual map.
β See what's eating your disk.
β Spot bloated tables instantly.
β Watch VACUUM reclaim space.
No SQL. No dashboards.
Free & open source
xitter.cf/alxshp/status/21078790β¦
100 branches/week today. 10,000 is the goal. π
π We launched pgrun.dev
Postgres for AI agents is getting real.
Here are the early numbers:
β 100+ branches/week
β 3,515 hours of Postgres runtime
β 1.7s average branch creation
β 5.5s p95
β 1.4 GB peak storage
Every agent gets its own isolated Postgres.
Create. Test. Destroy. Repeat.
No local database. No cleanup. No conflicts.
We're just getting started.
xitter.cf/alxshp/status/21078790β¦
KILL your local POSTGRES!
Introducing pgrun.dev π
π KILL your local database. NOW!
Stop creating local and staging databases manually.
Thatβs the old way. The new way:
β Every agent gets its own Postgres.
β Every PR gets its own Postgres.
β Every CI run gets its own Postgres.
Created in seconds.
Used.
Destroyed.
Databases should be disposable.
xitter.cf/alxshp/status/21024376β¦
FAKE POSTGRES DATA
Launched today: pgfake.dev π
Deterministic data masking for PostgreSQL.
Real data in. Safe fake data out.
β Same schema.
β Same relationships.
β No real customer data.
v0.1.0 Β· Go Β· zero deps Β· deterministic
[email protected] β pgfake β [email protected]
Built for dev, CI, staging, and AI agents.
xitter.cf/alxshp/status/21057051β¦
Postgres Bot!
pgbot.dev is still the center of everything Iβm building π
inspect β understand β fix Postgres
Slow queries. Locks. Indexes. Bloat. Replication. Connections.
PgBot finds the problem and gives humans + AI agents the context to fix it.
Open source. Read-only. Fast.
xitter.cf/alxshp/status/21060688β¦
POSTGRES LOCKS π
pgbook.dev - Postgres Book: Locks π
Why a query is stuck, not slow!
Learn how to find:
β who is blocking whom
β how long itβs been waiting
β what lock is involved
β how to fix it safely
Your query may be fast.
Itβs just waiting for another transaction.
xitter.cf/alxshp/status/21060688β¦
TERMINAL for Postgres!
Modern Postgres Terminal 2.0 π
Built in Rust.
Available on Linux + macOS.
pgterm.dev
No dashboards. No 15-tab workflow.
Built for developers. Built for AI agents.
> connect
> explore
> query
> inspect
> debug
> optimize
> understand what is actually happening
> fix the problem
> ship
No jumping between tools just to understand your database.
One terminal for Postgres.
Built for the way we work now.
xitter.cf/alxshp/status/21057051β¦
2,000+ stars is cool. Seeing people actually use these tools is much cooler.
I launched 7 OSS PostgreSQL products recently π and got 2,000+ GitHub stars. βββββ
β pgbot.dev Postgres intelligence
β pgterm.dev Postgres terminal
β pgbook.dev learn Postgres
β pgrun.dev Postgres for agents
β pglogs.dev Postgres logs
β pggo.dev Postgres for Go
β pg??? Postgres in seconds (WIP)
7 products. 30+ days. 2,000+ stars.
I might have a Postgres problem.
xitter.cf/alxshp/status/21024376β¦
What if Postgres clients were designed for AI agents instead of humans?
~2,000 lines of Go. Zero dependencies. Direct Postgres wire protocol. π
Launched today: pgGo.dev π
tiny, fast Postgres client built for coding agents.
β Zero dependencies
β JSON-native
β Safe parameterized queries
β Read-only queries by default
β Bounded output
β Strict timeouts
β Predictable errors + SQLSTATE
β ~8ms one-shot Postgres calls
~2,000 lines of Go.
~4 MB static binary.
~1.7 MB compressed.
No pgx.
No libpq.
No psql parsing.
It speaks the Postgres wire protocol directly.
Minimal. Fast. Agentic.
xitter.cf/alxshp/status/20904845β¦
10 GB without moving 10 GB.
How does pgrun.dev copy a 100 GB Postgres database in seconds?
It doesnβt
COW = Copy-on-Write
The branch starts by sharing the same disk blocks.
Change 1 MB?
Write ~1 MB.
The other ~9.999 GB stays shared.
Thatβs how Postgres branching gets fast.
xitter.cf/alxshp/status/21024376β¦
DBA in one command? Not quite. But weβre getting suspiciously close.
pgbot.dev can score any Postgres database in ~3 seconds β‘
π’ DATABASE HEALTH β 90/100
Ask your agent:
βWhatβs my database score?β
Agent β PgBot β Inspect
pgbot Inspect
One command checks:
queries β indexes β waits β locks β tables β vacuum β replication β more
xitter.cf/alxshp/status/21006265β¦
pgrun.dev retweeted
WHO launched rustonrails.dev right after Rails World?! ππ¦
βLove Rust! Rust is amazing.β β @dhh
> Rust is fast.
> Rust is everywhere.
> DHH loves Rust. (bit not read)
But the real question:
Do we actually need Rust on Rails?
Or is Rails already exactly what it needs to be? π€
#RailsWorld #Rails #Rust
xitter.cf/bendiken/status/210284β¦
pgterm+ Ghostty β‘οΈ
pgterm.dev + Ghostty β‘οΈ
Your entire Postgres workflow. Inside the terminal.
Ghostty β PGTerm β PgBot β Postgres
β Query data.
β Inspect performance.
β Find problems.
β Debug Postgres.
No dashboard.
No context switching.
Just your terminal.
xitter.cf/alxshp/status/21006265β¦
Postgres branch in ~1 second
Speed of light!
Launched today: pgrun.dev 2.0 π
Create a 1 GB Postgres branch in ~1 second.
PGRun is now 3Γ faster.
DATABASE_URL: 4.88s β 1.36s
Under the hood:
ZFS snapshot β 22ms
ZFS clone β 31ms
Postgres startup β p50 80ms
DATABASE_URL β p50 1.36s
No database copy. Copy-on-write.
Every agent gets its own Postgres.
xitter.cf/alxshp/status/20999032β¦
β‘ PgBot + Jev
pgbot.dev now works with Jev β‘οΈ
pgbot β inspect any Postgres in sec.
Jev AIβ decide what matters next
pgbot β investigate deeper
LLM β explain it
Facts from Postgres.
Fast decisions from Jev.
Better agents.
xitter.cf/alxshp/status/21006265β¦



