Our data plane doesn't run on Postgres anymore

Impact 8 Pinecone Blog

Summary

  • Pinecone migrated its serverless data plane from 77 managed Postgres databases across AWS, GCP, and Azure to FoundationDB and object storage, deleting the last Postgres database in September 2026.
  • The transition reduced data plane infrastructure costs by approximately 20x, eliminating issues like transaction ID wraparound caused by millions of orphaned empty tables from automated test checkers.
  • FoundationDB was chosen as the metadata store because it operates natively on Kubernetes, supports fully serializable transactions across ordered keys, and handles key-range partitioning without single-primary write bottlenecks.
  • Rather than using dual-writes, the migration strategy ensured that each write went to exactly one database during any migration phase, while reads utilized fallback mechanisms to prevent data synchronization anomalies.
  • Ephemeral leases and derived manifests were migrated using specific phased approaches, transitioning from Postgres fallbacks to FoundationDB-primary writes and eventually decommissioning the legacy relational tables.

Why it matters

Migrating core metadata infrastructure from managed Postgres to FoundationDB allowed Pinecone to significantly lower costs, eliminate complex multi-cloud operational quirks, and enable reliable BYOC (Bring Your Own Cloud) deployments on Kubernetes without relying on external relational database constraints.

Who should care

manager 80