Skip to content

Pinecone Releases Open Source pg_pinecone Extension for Vector Search in PostgreSQL

Pinecone has released pg_pinecone, an Apache 2.0 licensed PostgreSQL extension that adds its own vector search engine to existing pgvector columns. The company says it applies filters during search rather than after, and reports benchmark results against pgvector's HNSW index.

3 min readBased on 1 source14 views

TL;DR

  • Pinecone released pg_pinecone, an open source PostgreSQL extension that adds vector search to existing pgvector columns without a Pinecone account.
  • Its native engine applies filters during the search instead of after candidate retrieval, which Pinecone says helps with selective queries.
  • All performance and size figures come from Pinecone's own benchmarks, which have not been independently verified yet.

What pg_pinecone adds

Pinecone, best known for its managed vector database for AI applications, has announced pg_pinecone. The extension runs entirely inside the local PostgreSQL database and indexes the vector columns that teams already have. It also supports existing pgvector indexes. The project is available on GitHub under the Apache 2.0 license.

Vector search finds rows whose embedding vectors are closest to a query vector. It is the usual retrieval step in AI features such as semantic search and retrieval-augmented generation. pgvector is the widely used PostgreSQL extension for storing and searching these vectors.

How the native engine works

The native engine uses an IVF index, short for inverted file index, which groups similar vectors into clusters. It compresses each vector with RaBitQ quantization, which reduces each dimension to roughly one bit plus a few correction values. InfoQ notes that this design lets searches read contiguous memory pages instead of walking graph nodes, unlike graph-based indexes built for static, high-throughput workloads.

The main difference is how filters are handled. According to Pinecone, pgvector's HNSW approach applies filters after it retrieves the nearest neighbors. When a filter is very selective, most of those candidates can be discarded, which can return fewer rows than requested or force extra scans that add latency and may lower accuracy. pg_pinecone instead picks a filtering strategy based on how selective the filter is. At build time it counts how many rows carry each value of a filter column, so the engine knows in advance how narrow a filter is.

Pinecone's benchmark claims

Pinecone's authors, staff product manager Harshita Daddala and software engineer Anthony Mahanna, describe one test in which 10% of rows match the filter. In that case, 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. Recall is the share of true nearest neighbors that the search returns, so the two results trade accuracy against speed.

In a benchmark with one million 768-dimensional vectors, Pinecone reports a 136 MB index. The pgvector HNSW index using half-precision vectors is 2 GB in the same test. Pinecone also describes an optional remote engine that offloads search to its managed service without changes to SQL queries.

These numbers are not independently verified. Developers evaluating the extension should run their own tests with their data and filter patterns.

Competing approaches

Pinecone is not the only vendor bringing vector search closer to PostgreSQL. InfoQ lists TensorChord's VectorChord extension and managed offerings such as Databricks Lakebase as alternatives. InfoQ also reports that Tiger Data has introduced pg_vectorsearch, another extension aimed at better vector search performance and index efficiency. Outside commenters have raised open questions. Khalid Alhabibie said he would like to see how recall and query latency behave when tenant sizes vary widely, a case where benchmarks can be tricky.

Why it matters

Teams that already store embeddings in PostgreSQL may be able to add vector search without running a separate vector database. The main question is whether the filtering gains hold for their own queries. Filtered search, such as per-tenant or per-category lookups, is the scenario Pinecone emphasizes, so teams with that pattern have the most reason to test it. Because the extension is Apache 2.0 licensed and works with existing pgvector columns, a trial can be run on a copy of an existing database before any schema changes.

Sources

This article was written by Blozhik from the reporting below. Read the originals for full detail.

InPinecone Introduces Open Source Vector Search Extension for PostgreSQLInfoQ
Was this useful?

Keep reading

Discussion · 0

Sign in to join the discussion. Liking does not need an account.Sign inRegister
Loading comments…
blozhikDeveloper news from across the web, explained. Every story links to its original sources.