Introducing pg_pinecone: Open-Source Search for Your Postgres Data
Oct 27, 2026Harshita Daddala, Anthony Mahanna11 min read
What the post covers
This post introduces pg_pinecone, an open-source PostgreSQL extension that brings Pinecone's search engine technology into PostgreSQL.
- It offers a native engine that uses RaBitQ codes for efficient, in-database indexing and searching, significantly reducing index size and improving filtered search accuracy compared to pgvector's HNSW.
- The extension also supports pgvector and a remote engine for offloading to Pinecone's managed service.
- Key technical contributions include the RaBitQ quantization method for vector compression, an inverted file index (IVF) approach for clustering, and a novel filtering strategy that integrates filtering into the search process for improved accuracy and performance, especially with narrow filters.
- Benchmarks highlight faster build times, smaller index sizes, and more accurate filtered search results.