AI & ML Plane · Vector Databases & Search

pgvector

PostgreSQL extension for vector similarity search.

Overview

pgvector is an extension to Postgres, not a database, and that distinction governs everything else. It adds vector types and index methods to a database you already run.

It is therefore not like-for-like with the others here. There is no cluster, no interface of its own, no authentication, no tenancy model, no hosting and no service level; all of that is Postgres's, or your provider's.

The single most important behavioural fact is that filtering happens after the index is scanned, and it says so with arithmetic: a condition matching a tenth of rows returns about four of the default forty candidates.

That is fixable and the fix is recent. Iterative index scans, added in the 0.8.0 release, keep scanning the index until enough results are found, within configurable tuple and probe ceilings.

So copy presenting short filtered results as an unfixable flaw is out of date, while copy claiming the problem does not exist is also wrong. The behaviour remains; the remedy is opt-in.

Watch the two-tier dimension limits, which trip people up. Storage reaches sixteen thousand dimensions, but the graph index handles two thousand for full precision and four thousand at half precision.

By default there is no approximation at all: exact search gives perfect recall, and you opt into an approximate index deliberately, which is an unusually honest default.

Its recent releases are maintenance rather than features, and that matters for a different reason: several fixed memory safety and correctness bugs in index build and vacuum paths, including possible index corruption.

Anyone still on an early 0.8 release with the graph index therefore has a correctness reason to upgrade, which inverts the usual "it is mature, leave it alone" advice.

Governance is the real risk to weigh. There is no governance document and effectively one maintainer, with nearly two thousand commits to the next contributor's eighteen, and no published security policy or disclosure process.

Key features and capabilities

The same headings are used for every vector databases & search entry, so two tools can be read side by side.

Index types and algorithms
  • No index and no approximation by default, so exact search with perfect recall is the starting point
  • Two index types only, a graph index and an inverted-file index, each needing a separate index per distance function
  • The graph index builds on an empty table and uses more memory; the inverted-file index builds faster but needs data first
  • Build parameters are connections and construction breadth for the graph, and list count for the inverted file, with published sizing rules
  • Builds are much faster when the graph fits in maintenance memory, and it emits an explicit notice when it no longer does
Similarity, hybrid and filtering
  • Six distance operators covering the usual metrics plus taxicab, Hamming and Jaccard
  • Filtering is applied after the index scan by default, documented with the arithmetic showing how few rows survive
  • Iterative index scans, added in the 0.8.0 release, keep scanning until enough results are found within set ceilings
  • Two iterative modes trade strict distance ordering against better recall, with a documented pattern to restore ordering
  • Keyword search and hybrid ranking are Postgres features and hand-written SQL respectively, not extension features
Scale, sharding and limits
  • Single-node by design, with vertical scaling the documented recommendation
  • Horizontal scaling is explicitly someone else's job, through replicas or two named sharding projects
  • Storage limits are sixteen thousand dimensions for full and half precision types and non-zero elements for sparse
  • Index limits are much lower and differ by type, two thousand dimensions for full precision and four thousand at half
  • There is no separation of storage and compute, and the table ceiling is Postgres's own
Ingest, updates and multi-tenancy
  • Ingest is ordinary SQL, with a binary copy command recommended for bulk loading and indexes added afterwards
  • Updates and deletes are ordinary multiversion rows, which is why vacuuming the graph index is slow and reindexing first is advised
  • Transactional consistency, point-in-time recovery and replication are inherited from Postgres rather than implemented here
  • Multi-tenancy is Postgres's, and it documents the pitfall rather than solving it, warning that a shared index lets one tenant affect another's recall
  • Two data traps are published, since null vectors are not indexed, nor zero vectors under cosine distance
Embeddings and multimodal
  • It ships no embedding models, no inference and no provider connectors, so you must bring your own vectors
  • There is no re-embedding on update, no chunking and no text splitting
  • No multimodal support of its own, since it stores arrays without knowing what produced them
  • Provider-side embedding exists only as a feature of managed Postgres services, through their own separate extensions
  • Its only embedding guidance is that normalised vectors should use inner product for best performance
Integrations
  • The interface is SQL over the ordinary Postgres protocol, so every existing driver, pooler and tool works unchanged
  • Client libraries are published for more than thirty languages under the same organisation
  • Object-relational mappers are covered inside those per-language repositories rather than listed in the readme
  • Packaging covers source builds, containers for six Postgres majors, and the major operating system package managers
  • Observability is Postgres's own, including build progress views and query plans; there is nothing extension-specific
Where it runs and what it costs
  • Runs anywhere Postgres runs, installed per database with a single statement
  • Official container images span Postgres thirteen through eighteen, with a documented shared memory caveat for parallel builds
  • Seven managed Postgres providers ship it, though the readme defers to a community thread rather than maintaining a matrix
  • Only one of those providers publishes the exact extension version it offers, so version drift is a real planning question
  • Availability, failover, pooling and recovery all come from Postgres or your provider, never from the extension

Pricing

Open sourceFree; you pay for Postgres

Free, and not sold: no licence fee, no paid tier, no vendor, no support contract and nothing to negotiate. There is no open-core upsell path because there is no company, which is a structural guarantee none of its rivals can offer. The real cost is the Postgres you already run or buy, where memory dominates, since the graph index performs best when it fits in maintenance memory and its own notice warns when it does not. Storage is computable exactly from the published byte formulas.

Vendor pricing page →

About pgvector project

There is no company, no incorporated entity and no foundation: funding, investors, valuation, employees, revenue and acquisitions are all not applicable rather than merely unpublished. The repository dates from April 2021 and carries a permissive Postgres licence with only upstream copyright lines and no project or personal copyright line. Its governance is the fact that matters: no governance document, no maintainers file, no code of conduct and no security policy exist, and contribution guidance is a short section of the readme. Commit history shows one author with close to two thousand commits against eighteen for the next contributor, and every recent commit and release tag is theirs. That single-maintainer concentration, against twenty-three thousand stars and only seventeen open issues, is both its discipline and its risk.

Founded 2021 · github.com

Other vector databases & search tools

Milvus

AI & ML Plane · Vector Databases & Search

Open-source vector database built for large-scale similarity search.

  • Open source

Pinecone

AI & ML Plane · Vector Databases & Search

Fully managed vector database for similarity search and retrieval-augmented generation.

  • Commercial

Qdrant

AI & ML Plane · Vector Databases & Search

Open-source vector search engine written in Rust, with a managed cloud offering.

  • Open core

Weaviate

AI & ML Plane · Vector Databases & Search

Open-source vector database with hybrid search, also available as a managed cloud.

  • Open core

Drafted with AI assistance and checked against the vendor’s own documentation.