Pinecone has announced pg_pinecone, an open source PostgreSQL extension that adds vector search to existing pgvector columns without requiring a Pinecone account. The extension runs entirely within the local PostgreSQL database and introduces a native engine that uses an IVF index with RaBitQ quantization, applying filters during search rather than after candidate retrieval—a design choice that addresses a limitation of pgvector's HNSW approach for selective queries.

Native engine architecture and quantization

Rather than a graph-based index designed for static, high-QPS workloads, pg_pinecone's native engine uses IVF to cluster similar vectors and RaBitQ to compress them to roughly one bit per dimension, plus correction values. This approach allows searches to read contiguous memory pages rather than traverse graph nodes. The index stores a compact summary of each vector, keeping the memory footprint small and building indexes quickly. In benchmarks using one million 768-dimensional vectors, Pinecone reports a 136 MB index compared with 2 GB for pgvector HNSW using half-precision vectors.

Filtering during search

The extension applies filters during the search phase, not after retrieving nearest neighbors. Traditional pgvector applies filters after retrieving nearest neighbors, meaning highly selective filters can discard most results, returning fewer rows than requested or requiring additional scans that increase latency and may reduce accuracy. pg_pinecone's native engine stores the value of one filter column next to each row's RaBitQ code and, at build time, counts how many rows carry each value. With 10% of rows matching, the native engine uses single-stage filtering and reaches 1.000 recall in 12.3 ms. HNSW with iterative scans reaches 0.920 recall at best, in 5.9 ms.

Integration and ecosystem

The extension indexes the vector columns already present in the database. It also supports existing pgvector indexes and an optional remote engine that offloads search to Pinecone's managed service without requiring changes to SQL queries. As Jenna Pederson, head of developer relations at Pinecone, demonstrated in a recorded video, the performance figures are based on Pinecone's own benchmarks and have not yet been independently verified. Khalid Alhabibie commented that the tenant filtering part is interesting and expressed curiosity about how recall and query latency behave when tenant sizes vary a lot—a known challenge in benchmark scenarios.

Pinecone is not the only company bringing vector search closer to PostgreSQL. Alternatives include TensorChord's VectorChord extension and managed PostgreSQL offerings such as Databricks Lakebase. As recently reported by InfoQ, Tiger Data has introduced pg_vectorsearch, another extension aimed at improving vector search performance and index efficiency.

Availability

The pg_pinecone project is available on GitHub under the Apache 2.0 license. The extension requires no Pinecone account to use, making vector search capabilities accessible directly within existing PostgreSQL setups that already have pgvector installed.