Pinecone has finished a Pinecone FoundationDB migration that removed Postgres from its data plane entirely. At the end of September 2026 the company deleted the last of roughly 77 managed Postgres databases that ran across AWS, GCP and Azure. Everything they held moved live, with writes never stopping, to object storage or FoundationDB, and Pinecone says it now pays about 20 times less for the same job.
What the metadata does
Pinecone’s serverless product stores index data as immutable files in object storage. Each write lands first in a write-ahead log, index builders turn that log into files, and query executors load the files a query needs. Something has to track which files make up an index right now, where each namespace keeps its data and which workers are alive. That bookkeeping is the metadata.
Object storage is a poor home for it. The data is tiny and read constantly, and some of it is written just as often, so per-request cost and latency add up.
Why managed Postgres stopped working
Pinecone picked Postgres in 2023 because every cloud offered it as a managed service and the team couldn’t yet run its own storage. Over less than three years it merged about a hundred changes that resized, re-tiered or retuned the databases. Roughly a fifth just recorded fixes on-call engineers had already clicked through in a console during an incident.
The AWS fleet swapped between serverless and provisioned instances four times. Each cloud had quirks: resizing on AlloyDB is a failover, and running out of connections on RDS once triggered a cross-zone failover. Databases also restarted now and then, causing brief unavailability.
Much of the pain came from Pinecone’s own design, which created several Postgres tables per index. Internal checkers that create an index every five seconds, about 17,000 a day in each of seven environments, had a cleanup bug. Millions of empty tables piled up. In August 2024 AWS warned that one database was nearing transaction ID wraparound, a limit tied to Postgres’s roughly 4 billion 32-bit IDs. Freezing the tables took manual vacuums lasting more than 40 hours.
The order of the moves
The company did not move everything at once. In 2025 a new slab architecture let it replace the vector directory, which maps vector IDs to files, with an object-store file called vlookup. In December 2025 it moved metadata and consistency handling into object storage, relying on conditional writes that S3 only gained in late 2024. Those two databases made up more than half of the managed Postgres bill.
What remained were the smaller “system” and “control” databases, touched by nearly every read and write. They went to FoundationDB.
Why FoundationDB
The push came from bring-your-own-cloud deployments, where Pinecone runs inside a customer’s account. Requiring RDS there adds work for the customer and may be barred by approved-service lists. Pinecone wanted one metadata store that runs the same anywhere Kubernetes does.
FoundationDB is an open-source distributed key-value store with ordered keys and serializable transactions across any set of keys. It sits under systems like Snowflake and Datadog and has a maintained Kubernetes operator. Pinecone’s workload was always key-value, with no joins and lookups by key or key range. What kept growing was the number of namespaces, which FoundationDB handles by splitting and moving key ranges on its own. In a quick test Postgres was faster on single-key reads and FoundationDB was faster on batched writes.
Writing each record to one place
Without SQL, each index became a range of keys the team writes itself in the same transaction as the record. To catch drift, every FoundationDB store implemented the same Rust trait as its Postgres predecessor and ran the same tests. After each test a checker rebuilt every index from the records and compared it with what was stored.
The team first planned to dual-write during the move, then adopted a teammate’s rule: in any phase a write goes to exactly one database, while reads may fall back from one to the other. For rebuildable data such as manifests, reads fell back to Postgres first, writers switched to FoundationDB next, older records were backfilled after that, and fallback ended last.
The riskiest piece was the table of internal mappings, which says where each namespace’s data lives and can’t be rebuilt. Pinecone made continuous backups, trailing the live database by well under a minute, plus daily snapshots, a hard requirement on every production cluster before touching it.
What it means for other teams
The takeaway is narrow but useful: if your workload is pure key-value and you run across clouds, a managed relational database may cost more in tuning and incidents than it saves. Pinecone says Postgres remains in use elsewhere at the company. Further write-ups on the slab migration and the move to object storage are promised.
Source: pinecone.io