Overview
pgvector is a PostgreSQL extension that stores vectors in ordinary database tables and adds similarity-search operators. Applications can keep embeddings beside relational data, use SQL to retrieve neighbors, and retain PostgreSQL features such as transactions and joins instead of introducing a separate vector service.
It suits developers who already operate PostgreSQL and want vector retrieval within that environment. Exact search and approximate indexes serve different needs: approximate retrieval exchanges some recall for speed, and index construction, memory consumption, filtering, and workload contention need testing. pgvector stores and searches supplied vectors; an application still needs an embedding-generation workflow.
Capabilities
Exact and approximate search
Run exact nearest-neighbor queries or use HNSW and IVFFlat indexes for approximate retrieval. Official source
Multiple vector representations
Store single-precision, half-precision, binary, and sparse vectors. Official source
Distance operators
Query supported vector types using measures including L2, inner product, cosine, L1, Hamming, and Jaccard distance. Official source
Relational integration
Use vector columns with PostgreSQL queries, joins, transactions, and ordinary insert, update, and delete operations. Official source
What users say
Limited: one independent source
One practitioner blog describing an attempted production implementation; limited feedback, not a benchmark.
Independent feedback is limited to one critical production-oriented account by Alex Jacobs. He appreciates the attraction of keeping vectors in PostgreSQL but describes difficulties around index selection, index-build memory, sustained ingestion, and the interaction between metadata filtering and approximate search.
This is one practitioner’s assessment, not a controlled comparison or a satisfaction survey. Some claims are deliberately sweeping; they should be treated as prompts for workload-specific tests rather than universal limits. In particular, current official documentation should govern decisions about supported indexing and filtering behavior.
Sources
- pgvector official repository and READMEOfficial documentation
- Alex Jacobs: The Case Against pgvectorIndependent evaluation
Sources checked .