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.
Last verified:
Key facts
| License | PostgreSQL |
|---|---|
| License notes | PostgreSQL License, a permissive OSI-approved license. |
| Open source (OSI) | Yes |
| First release | 2021 |
| Latest stable version | 0.8.7 (Oct 1, 2026) |
| Deployment | self-hosted, managed |
| Wire compatibility | postgres |
| Query languages | SQL |
| Written in | C |
| Also known as | pg_vector, vector extension |
| Website | github.com |
| Documentation | github.com |
| Source code | github.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
Featured in guides
Sources
Last verified:
- github.com/pgvector/pgvector github.com
- pgxn.org/dist/vector pgxn.org
- api.pgxn.org/src/vector/vector-0.8.7/CHANGELOG.md api.pgxn.org
Found an error? See how to report a correction.