pg_pinecone vs pg_turbovec

A review of pinecone-io/pg_pinecone (announced 2026-10-27, https://www.pinecone.io/blog/introducing-pg-pinecone/) against pg_turbovec, done 2026-11-30. Sources: the announcement, the pinecone-io/pg_pinecone README and repo metadata, and pg_turbovec’s own docs. Everything here is a source/doc review, not a measured head-to-head. No pg_pinecone build was run; its latency/size numbers are Pinecone’s own published figures on their hardware, and pg_turbovec’s are from our prior benches on different hardware. The two number sets are not directly comparable and nothing below should be promoted to a competitive performance claim without an A/B on one host (see the bench-host rules in benches/METHODOLOGY.md).

The headline: pg_pinecone’s native engine is pg_turbovec’s architecture

The most important fact is that Pinecone, after running vector search at scale, built the same index pg_turbovec already ships:

Its index stores compressed vector codes (using RaBitQ) in clusters instead of a graph, and the engine filters during the search instead of after it.

That is IVF (clusters) + a ~1-bit-per-dimension quantized code with correction values (RaBitQ) + full-vector rerank of a shortlist, filtering applied during the scan. pg_turbovec is IVF (WITH (lists = N)) + TurboQuant quantized codes (½/4-bit, the 1-bit sign-BQ kind is the closest analogue to RaBitQ’s ~1 bit/dim) + exact-distance rerank, with filtering via the index AM. Both are written in Rust on pgrx (pg_pinecone pins cargo-pgrx 0.19.2, pg_turbovec 0.19.4), both are Apache-2.0, both keep the full vectors in the user’s table and index only the codes. The convergent design is strong external validation of pg_turbovec’s core bet: at scale, IVF + bit-quantized codes beats HNSW on memory, build time, and filtered accuracy. Pinecone makes exactly the argument pg_turbovec’s positioning docs make against HNSW.

Where pg_pinecone is genuinely ahead

  1. Filtering is a first-class, selectivity-adaptive part of the index. pg_pinecone stores one filter column’s value next to each RaBitQ code, counts each value’s cardinality at build time, and picks a strategy per query: pre-filtering (scan every matching row, exact) under ~3% selectivity, single-stage filtering (check the predicate inside each probed cluster, probe more clusters) above it. Its filtered-recall story is the centre of the launch, and it is a clean, built-in answer to the post-filter problem. pg_turbovec’s filtering (docs/FILTERING.md) is more of a toolkit the user assembles: turbovec.knn(..., allowed) for selective per-query id sets, the AM’s iterative scan for selective WHERE, a decision matrix the caller reads. pg_pinecone’s “store one filter column in the index, choose the strategy for me” is more ergonomic and is the feature most likely to win a head-to-head on the filtered workloads both target. This is the gap worth closing.

    Closed in pg_turbovec 2.17.0 with a different mechanism (see docs/FILTERING.md § 2.5). The index names one filter column (USING turbovec (emb, tenant_id)), but the value is looked up in a btree on that column at scan time rather than stored beside each code, so no relfile writer or VACUUM path changed. The strategy is chosen from the EXACT match count, not an estimate: every match is scored and reranked exactly up to turbovec.filter_exact_max rows (pg_pinecone’s mode L), and above that the match set masks the kernel and IVF probes widen by 1/selectivity (its mode H). Measured on 200k x 64-d IVF: recall@10 1.000 / 1.000 / 0.994 at 0.1% / 1% / 10%, against 0.002 / 0.030 / 0.270 post-filtered. Still not compared head-to-head with pg_pinecone.

  2. A three-engine escape hatch under one SQL surface. native (its own in-Postgres IVF/RaBitQ), pgvector (search an existing HNSW), and remote (offload to Pinecone’s managed service), switched with pinecone.set_engine() and no query change. The remote engine is the honest answer to “you have outgrown one Postgres server”. It is also the funnel to Pinecone’s paid product, which is the point of the release. pg_turbovec has no managed-offload story and is not trying to have one; its scale answer is out-of-core IVF on one (bigger) box. The pgvector drop-in-on-an-existing-HNSW engine is a nice migration ergonomic we do not match.

  3. Optional Pinecone-backed extras, all gated behind an API key: embed() (text -> vector via Pinecone inference), BM25 full-text search kept in sync, and rerank() with Pinecone’s reranking models. These are product up-sells, not core index features; pg_turbovec deliberately stays self-contained (no network, no account). Worth noting that embed() addresses exactly the text->vector friction we hit trying to add a text corpus, but it is a paid hosted call, not something we would adopt.

Where pg_turbovec is ahead or at parity

  1. PostgreSQL version coverage. pg_turbovec supports 13 through 19 (19 GA since v2.16.2). pg_pinecone requires PostgreSQL 17 or 18 only: no 19 yet, and nothing below 17. For anyone not on 17/18 this is decisive.

  2. More index kinds and tunable precision. pg_turbovec ships flat, IVF, ColBERT (multivector), and a ½/4-bit quantization knob (bit_width), plus a graph kind (deprecated). pg_pinecone’s native engine is one shape: IVF + RaBitQ at ~1 bit/dim. For a workload that wants 4-bit precision, or exact flat below ~1M, or multivector, pg_turbovec has a lever pg_pinecone does not.

  3. Self-contained, no vendor funnel. pg_turbovec’s full feature set runs with no account, key, or network call ever. pg_pinecone’s native engine does too, but the launch’s gravity is toward the paid remote/embed/rerank path; its native engine is, in Pinecone’s framing, the on-ramp.

  4. Correctness-hardening maturity. pg_turbovec carries a long, documented corruption-and-crash-safety history (the HARD MANDATE, eight+ fixed root causes, the e2e suite added in v2.16.4 for savepoint/visibility/unlogged crash). pg_pinecone is five weeks old; its durability track record is not yet established. Not a feature, but a real differentiator for a system of record.

The one claim that should make us nervous

Pinecone’s published native-engine numbers on 1M x 768-d (their r6id.4xlarge): 136 MB index; 1.3 ms at 0.95 recall, 2.3 ms at 0.99; and, the pointed one, 1.000 recall in 12.3 ms on a 10%-selective filter where HNSW’s iterative scan tops out at 0.920. pg_turbovec’s standing CO1024 numbers come from different hardware and a different filtering model, so we cannot say who wins. But the filtered-exactness result is the axis Pinecone chose to plant its flag on, and it is the axis pg_turbovec’s filtering docs are least confident about. If we want to contest this, the work is: measure pg_turbovec’s filtered recall+latency at matched selectivity against pg_pinecone’s native engine on one host (both are pgrx/Rust, both installable side by side), on the wiki_dpr 1M/768 set they used, and report it honestly.

Recommendation

  • Do not chase the managed/remote/embed/rerank features. Those are Pinecone’s paid funnel and off pg_turbovec’s self-contained mission.
  • Treat in-index, selectivity-adaptive filtering as the priority gap. Done in 2.17.0 (above).
  • Lead with PG 13-19 coverage, the precision knob, and the self-contained, corruption-hardened story in any positioning. Those are real, current advantages.
  • Before any competitive claim, run the A/B (wiki_dpr 1M/768, matched recall and selectivity, one host, both extensions) per the methodology rules. Until then this review stays un-benchmarked, by design.