# pgvector

> Open-source PostgreSQL extension that adds vector similarity search directly into Postgres, letting teams store embeddings alongside their existing relational data.

Canonical: https://www.findalternate.com/pgvector
Last updated: 2026-09-11

Open-source PostgreSQL extension that adds vector similarity search directly into Postgres, letting teams store embeddings alongside their existing relational data.

## Key facts

- **Website:** https://github.com/pgvector/pgvector
- **Category:** Database
- **Pricing:** FREE
- **Platforms:** Self Hosted, Docker
- **Launched:** 2026-07-01
- **Maker:** adi
- **Likes:** 0
- **Points:** 0
- **Comments:** 0

## Key features

- Native Vector Database Extension: Store and query high-dimensional embeddings directly inside your existing PostgreSQL database.
- Exact & Approximate Nearest Neighbor: Search vector embeddings using exact KNN search, HNSW graph indices, or IVFFlat indexing.
- Multi-Distance Metric Support: Compute vector similarity using L2 distance, cosine similarity, inner product, and L1 distance.
- Full SQL & ACID Compatibility: Combine vector search with standard PostgreSQL relational filters, joins, transactions, and foreign keys.
- Open-Source & Universally Supported: Run on self-hosted PostgreSQL or managed cloud databases on AWS, Supabase, Neon, and Google Cloud.

## Recommended for

Full-stack developers and AI engineers building RAG applications who want vector search without adding a separate standalone vector DB.

## Pros and cons

Pros:
- Keeps embeddings inside your existing PostgreSQL database infrastructure.
- Zero need to manage and synchronize separate vector databases.
- Fast HNSW indexing provides excellent query latency at scale.

Cons:
- Very large billion-scale vector indexes can demand heavy database RAM.
- Index creation on massive datasets can require significant CPU compute.

## Tags

vector, postgres, extension

## Alternates

- [Weaviate](https://www.findalternate.com/weaviate): Open-source vector database that combines vector search with structured filtering and built-in machine-learning model integrations for building AI-powered search applications. — FREEMIUM, 0 likes
- [Pinecone](https://www.findalternate.com/pinecone): Fully managed vector database purpose-built for storing and querying high-dimensional embeddings at scale, widely used to power semantic search and AI retrieval applications. — FREEMIUM, 0 likes
- [Chroma](https://www.findalternate.com/chroma): Open-source embedding database designed to be simple to run locally or in production, popular as the default vector store for many AI and LLM application prototypes. — FREE, 0 likes
- [Milvus](https://www.findalternate.com/milvus): Open-source vector database built for massive-scale similarity search, designed to handle billions of vector embeddings with high performance for AI applications. — FREE, 0 likes
- [Qdrant](https://www.findalternate.com/qdrant): Open-source vector similarity search engine and database written in Rust, offering filtering, payload storage, and a straightforward REST and gRPC API. — FREEMIUM, 0 likes

## Related

- [Database category](https://www.findalternate.com/category/database)
- [Compare pgvector and Weaviate](https://www.findalternate.com/compare/pgvector-vs-weaviate)
- [FindAlternate homepage](https://www.findalternate.com/)
