Tools

pg_pinecone: Pinecone open-sources Postgres vector search, reports a 136 MB index vs 2 GB for HNSW

Pinecone's Apache 2.0 Postgres extension indexes existing pgvector columns and filters during search, with no Pinecone account needed by default.

Published

3D illustration of a clay database cylinder beside a funnel sorting small vector blocks into tidy groups, with the Pinecone logo
AI-generated image

TL;DR

  • pg_pinecone is an Apache 2.0 Postgres extension that indexes the pgvector columns you already have; its default native engine needs no Pinecone account, API key or network calls [1][2].
  • In Pinecone's own benchmark on 1 million 768-dimension vectors, the native index was 136 MB versus 2.0 GB for pgvector HNSW on halfvec [1].
  • It applies filters such as a tenant ID during the search, so narrow queries still return a full set of results; version 0.13.0 adds a pinecone.doctor() health check [1][3].

Pinecone, best known for its managed vector database, has released pg_pinecone, an open-source PostgreSQL extension under the Apache 2.0 licence that runs vector search inside the Postgres database you already have [1][2][4]. It indexes existing pgvector columns, so applications keep sending the same SQL, such as ORDER BY embedding <=> $1 LIMIT 10 [1]. Pinecone announced it on 27 October 2026, and the latest release, v0.13.0, came out on 15 November [1][3].

Why it matters

Many teams building RAG, support assistants or agents with memory keep their data in Postgres and run vector search with pgvector’s HNSW graph index [1]. Pinecone argues that graph indexes need more and more memory as data grows, take a long time to build, and lose accuracy on filtered queries [1]. Because HNSW finds nearest neighbours first and applies the WHERE clause afterwards, a narrow filter such as one tenant out of a hundred can return fewer rows than the LIMIT asks for [1]. Pinecone says most real searches filter by tenant, user or category, which is the case pg_pinecone targets [1].

How it works

Each table picks one of three engines: native (the default), which builds and searches its index entirely inside Postgres with no Pinecone account, API key or network calls; pgvector, which uses pgvector’s own index; and remote, which moves search to a Pinecone serverless index [1][2]. Switching takes one call to pinecone.set_engine() and queries do not change [1].

The native engine groups vectors into clusters with an inverted file index (IVF) and stores each vector as a RaBitQ code of about one bit per dimension, then reranks a shortlist with the full vectors from your table [1]. It filters during the search: by default, when 3% of rows or fewer match it scans every matching row exactly, and above that it searches more clusters and checks the filter inside each one [1]. New rows are searchable as soon as they are inserted, but after large changes such as a bulk load that doubles the table, Pinecone recommends REINDEX or automatic maintenance [1].

Numbers, from Pinecone

On 1 million 768-dimension vectors, Pinecone reports a 136 MB index versus 2.0 GB for HNSW on halfvec and 4.1 GB on full-size vectors [1]. At 0.95 recall a query took 1.3 ms against 1.7 ms for HNSW on halfvec [1]. With 10% of rows matching a filter, the native engine reached 1.000 recall in 12.3 ms, while HNSW with iterative scans peaked at 0.920 recall in 5.9 ms [1]. InfoQ notes that these figures come from Pinecone’s own benchmarks and have not been independently verified [4].

Requirements and limits

pg_pinecone needs PostgreSQL 17 or 18, superuser access and pgvector on the server [2]. It installs from prebuilt releases, a Docker image, Postgres.app on Apple silicon or PGXN [2]. Optional features such as embed(), BM25 full-text search, rerank() and the remote engine need a Pinecone API key [1]. Version 0.13.0 adds pinecone.doctor(), a one-call setup and health check, plus signed and attested release artifacts [3]. Pinecone calls this its first release and says it will build the public roadmap from user feedback [1].

Sources

Written and checked by AI from the sources below

  1. Introducing pg_pinecone: Open-Source Search for Your Postgres DataPinecone ·
  2. pinecone-io/pg_pineconeGitHub (Pinecone)
  3. pg_pinecone v0.13.0 release notesGitHub (Pinecone) ·
  4. Pinecone Introduces Open Source Vector Search Extension for PostgreSQLInfoQ ·

Fact-checked by gpt-6.1-sol on · Editorial policy