pgvectorscale

PostgreSQL extension adding DiskANN-style vector indexing and quantization on top of pgvector.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

Postgres shops that outgrow pgvector's HNSW index can add pgvectorscale instead of migrating to a dedicated vector database. The extension, written in Rust with the PGRX framework, layers a StreamingDiskANN index on top of the standard pgvector data type, keeping the graph on disk rather than in RAM so indexes over tens of millions of embeddings stay affordable on ordinary instances. Statistical Binary Quantization, a Timescale-developed refinement of binary quantization, compresses vectors further, and label-filtered search applies the Filtered DiskANN approach so WHERE clauses on tags do not wreck recall; arbitrary predicates fall back to post-filtering. Timescale's benchmark on 50 million 768-dimensional Cohere embeddings measured 28x lower p95 latency and 16x higher query throughput than Pinecone's storage-optimized index at 99 percent recall, at roughly a quarter of the cost self-hosted. Installation is a Docker image, prebuilt packages, or a source build against PostgreSQL versions up to 18, the code ships under the PostgreSQL license, and Timescale Cloud runs it managed.

Should you use pgvectorscale?

Pick it when

Pick pgvectorscale when a Postgres app on pgvector has grown to tens of millions of embeddings and HNSW indexes no longer fit comfortably in RAM, so a disk-based StreamingDiskANN index lets you scale on ordinary instances.

Look elsewhere when

Skip it under a few million vectors, where plain pgvector is simpler, or if your managed Postgres host will not load it. Filters beyond labels fall back to post-filtering, so heavily filtered search may suit Qdrant better.

Alternatives to pgvectorscale

  • pgvector

    The base extension with HNSW and IVFFlat, bundled by most managed hosts; simpler to run and usually enough at low millions of vectors.

  • VectorChord

    Another Postgres scaling path using RaBitQ toward billion-scale; AGPL or Elastic licensed where pgvectorscale uses the PostgreSQL license.

  • Milvus

    A dedicated distributed vector database for when disk-based Postgres indexes cannot meet your scale or filtering needs; more systems to run.

  • Turbopuffer

    Managed vector search on object storage with usage pricing; no database to tune, but closed source and separate from your relational data.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Hybrid
Difficulty
Intermediate (3/5)
License
PostgreSQL
Added
Aug 24, 2026

Tags