AI NewsInfrastructureAnnouncement
Pinecone moved its data plane off 77 Postgres databases to FoundationDB
Pinecone moved its serverless data plane off 77 managed Postgres databases to FoundationDB. The new setup is about 20 times cheaper.
Image: Pinecone
Why it mattersPostgres can hit limits a growing serverless system cannot patch around. Pinecone's write-up shows the kind of problems to watch for.
A growing serverless system can need a different database from the one that started it. The cost of that change shows up in on-call hours, not bills. Pinecone says it spent two years moving the metadata behind its vector search off Postgres. It ran on 77 managed Postgres databases at launch. FoundationDB and object storage hold that metadata now, and the last Postgres cluster was deleted in September 2026.
Benny Nazimov wrote the account on Pinecone's blog on 30 November 2026. Pinecone says the new setup costs about 20 times less than the Postgres fleet it replaced. FoundationDB itself costs about one third of what the old databases cost. The team removed about 40,000 lines of Postgres-specific code, Pinecone says.
What broke in Postgres
Pinecone says its serverless launch in August 2024 ran on about 77 managed databases. They sat across AWS, GCP and Azure. The design made one table for each index. An index-creation check ran every five seconds in seven environments, Pinecone says. That check left about 17,000 empty tables each day across the fleet.
Those empty tables used transaction IDs, Pinecone says. Postgres stores a transaction ID in 32 bits. One database can hand out about 4 billion IDs before it must stop. One Pinecone database got near that limit in August 2024. It needed more than 40 hours of manual vacuum work to recover, Pinecone says.
Pinecone also says the fleet needed about 100 configuration changes in under three years. About 20 percent of those changes reversed an earlier on-call fix.
What FoundationDB stores now
Pinecone says FoundationDB holds only the control metadata. That means which files make up each index, where each namespace keeps its data, and which workers are alive. The index files, vector lookups and write-ahead logs all live in object storage. Each customer deployment runs its own FoundationDB cluster, Pinecone says. That fits the "bring your own cloud" setup Pinecone sells.
Pinecone verified the new store by writing both back ends behind the same Rust trait. Every test then ran against both. The team also wrote a TLA+ model of the migration. The model checker visited about 1.5 million states, Pinecone says.
The limits Pinecone names
Pinecone states two numbers against FoundationDB. Single-key reads take 1.2 to 2.4 milliseconds on FoundationDB. The same reads take 0.8 to 1.2 milliseconds on Postgres. So FoundationDB is 1.4 to 2 times slower on that path, Pinecone says. A query router in front caches about 98 percent of those reads. That keeps the extra cost under a millisecond, Pinecone says.
Pinecone also names two incidents from the migration. A Kubernetes operator bug deleted every storage pod in one cluster at once. That caused a 25 minute outage, Pinecone says. A separate write test pushed about 190,000 writes per second. The target was about 12,500. The storage queue hit its limit in two minutes. Pinecone cut its batch size to 250 rows to recover.
Teams running Postgres for metadata on a growing system can read this post as a case study. Pinecone blames one table per index, plus many short-lived checks that leave empty tables behind. A team running Postgres this way can watch its transaction ID counter and its table count. A database stops handing out IDs once it reaches four billion.
Source
Our data plane doesn't run on Postgres anymore by Benny Nazimov, Pinecone.
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.

