Skip to content
View original post on X: alex shapalov
Published
44/100

Alex Shapalov introduces PGX, a Rust runtime for thousands of Postgres databases

AIAlex Shapalov announces PGX, an open-source Rust runtime that runs thousands of Postgres databases in one process. He says 1,000 idle databases use 659 MB of RAM, an idle database uses about 0.7 MB, and a 674 MB database clones in 85 ms.

AIWhy it matters.

The post gives concrete memory and clone-time figures for running many Postgres databases per runtime, useful for judging its fit for agent workloads.

alex shapalovVerified on X
@alxshp
View on X

🚨Introducing a new database: PGX 🐘

Postgres for AI agents. In Rust. http://pgx.dev

One runtime. Thousands of Postgres databases.

⚡ Up to 100× less idle memory
⚡ 1,000 databases in just 659 MB RAM
⚡ Clone a 674 MB database in 85 ms
⚡ ~0.7 MB per idle database

RUST. OPEN SOURCE. FREE.

No containers per database.
No heavyweight instances.
No production baggage.

Real Postgres. Built to be disposable.

https://x.com/alxshp/status/2110049413070831817

alex shapalov@alxshp
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. https://x.com/alxshp/status/2107879013641560218
View quoted post on X
Source details

alex shapalov · x.comPublished · added here

Original title: 🚨Introducing a new database: PGX 🐘