pgvector

pgvector is an open-source PostgreSQL extension that adds vector data types and similarity search, so embeddings can be stored and queried next to relational data with ordinary SQL. It supports single- and half-precision, binary and sparse vectors, exact search, and approximate HNSW and IVFFlat indexes over L2, inner-product, cosine, L1, Hamming and Jaccard distances. It is available on most managed Postgres services.

Created by Andrew Kane, with version 0.1.0 released in April 2021; it is maintained as an independent open-source project under the pgvector GitHub organization, with no company or foundation behind it.

Vector Extensions & Plugins

Last verified:

Key facts

LicensePostgreSQL
License notesPostgreSQL License, a permissive OSI-approved license.
Open source (OSI)Yes
First release2021
Latest stable version0.8.7 (Oct 1, 2026)
Deploymentself-hosted, managed
Wire compatibilitypostgres
Query languagesSQL
Written inC
Also known aspg_vector, vector extension
Websitegithub.com
Documentationgithub.com
Source codegithub.com/pgvector/pgvector

Radar

adopt A proven default for its category: mature, widely run in production, with a healthy project behind it.

The simplest way to add vector search for teams already on Postgres, though very large or filter-heavy workloads may need a dedicated engine.

Ring reviewed Dec 3, 2026.

Alternatives

All pgvector alternatives

Featured in guides

Sources

Last verified:

  1. github.com/pgvector/pgvector github.com
  2. pgxn.org/dist/vector pgxn.org
  3. api.pgxn.org/src/vector/vector-0.8.7/CHANGELOG.md api.pgxn.org

Found an error? See how to report a correction.