🗄️ Pinecone releases pg_pinecone: filtered vector search inside PostgreSQL, no account needed
In brief
- 🗄️ pg_pinecone is an open-source PostgreSQL extension that adds Pinecone's vector search to existing pgvector columns.
- 🔎 Its native engine uses an IVF index with RaBitQ compression and applies filters during the search, not afterwards.
- 📏 Pinecone's own benchmark: 136 MB index for one million 768-dimensional vectors against 2 GB for pgvector HNSW.
- ⚖️ Apache 2.0 licence; the numbers are not yet independently verified.
Pinecone, known for its managed vector database, has released pg_pinecone, an open-source PostgreSQL extension that adds vector search to existing pgvector columns without a Pinecone account. The native engine groups similar vectors with an IVF index, compresses them to roughly one bit per dimension with RaBitQ, and filters during the search. That targets a weakness of pgvector's HNSW index: with a selective filter, filtering after retrieving neighbours can return too few rows. 🗄️ In Pinecone's own benchmark with one million 768-dimensional vectors the index is 136 MB, against 2 GB for pgvector HNSW with half-precision vectors. These figures have not been independently verified.
📦 Setup: according to the project's [GitHub page](https://github.com/pinecone-io/pg_pinecone) it needs PostgreSQL 17 or 18, superuser access and pgvector installed. After CREATE EXTENSION for both, one call to pinecone.create_index builds a native index on a vector column, and queries keep pgvector's distance operators. Prebuilt releases, a Docker image (pineconeteam/pg_pinecone), a Postgres.app package and a PGXN release are listed there.
🧭 Three engines sit behind one index per table: pgvector's own HNSW or IVFFlat, the native engine (default) and a remote engine. The remote engine moves a table's search to a Pinecone serverless index while Postgres keeps every row, which is the path for tables that outgrow one server. Pinecone says every switch can be reversed, and the project also keeps a Pinecone index in sync for full-text BM25 or hybrid search from SQL.
🔬 Why filters matter: InfoQ explains that pgvector applies filters after retrieving the nearest neighbours, so a highly selective filter such as one tenant can discard most results or force extra scans. The native engine stores one filter column next to each row's code, counts rows per value at build time and picks a strategy from the selectivity. Pinecone's staff product manager Harshita Daddala and engineer Anthony Mahanna report that with 10 % of rows matching, it reaches 1.000 recall in 12.3 ms, while HNSW with iterative scans reaches 0.920 at best, in 5.9 ms.
🧐 Caveats: the performance figures come from Pinecone's own benchmarks. A reader comment quoted by InfoQ asks how recall and latency behave when tenant sizes vary a lot. Pinecone is not alone in this space: InfoQ names TensorChord's VectorChord and Tiger Data's pg_vectorsearch as alternatives.