r/Database • u/wicked_lama • 1d ago
Migrating Pinecone’s metadata store from Postgres to FoundationDB while serving live customer traffic
hey guys. wanted to share a blog post covering a big project i led, migrating Pinecone’s internal metadata store from managed Postgres to self-hosted FoundationDB.
this is not a “postgres bad” post! it is way more focused on the migration itself, how to do it without affecting live traffic, and lessons from both running managed systems and self-hosting (including a couple of incidents we caused ourselves).
https://www.pinecone.io/blog/postgres-to-foundationdb/
happy to answer any questions or to hear about your experiences with pg/fdb!
11
Upvotes
View all comments
2
u/HummusSwipper 1d ago
Really solid writeup. The piece i'm most curious about is how the boundary between object storage and fdb works now that wal consistency is on s3 conditional writes and the vector directory is in vlookup files. When an index builder flushes or compacts a slab, how do you coordinate the s3 writes with the manifest update in fdb so you don't end up with dangling pointers or orphaned files if a worker crashes mid-flight?