pgvector

https://github.com/pgvector/pgvector

Stores embeddings alongside relational + full-text data. HNSW + IVFFlat ANN indexes. Used as agent conversation memory via LangChain + MCP. Foundation of Supabase AI and many self-hosted RAG stacks.

Active · Verified 2026-10-26 · fresh as of 2026-10-26 · 56 cited facts, 10 with a third-party source · 1 recorded change · Suggest a correction

At a glance

Tier
T1
Created
2021-04 repo fix
Latest release
v0.8.6 (2026-07-29) repo fix
License
PostgreSQL repo fix
Pricing
free (OSS) repo fix
Freshness
2026-10-26 fix
Layer
model-infra repo fix
Deployment locus
local repo fix
Platform vs product
platform repo fix

When to use

Optimised for: low-latency similarity search + scale

Anti-fit: not for relational / graph-heavy queries (vector-first by design)

Pros & cons

Pros

Postgres extension — keeps vector data alongside transactional data with full ACID; minimal ops for shops already running Postgres.

Cons

Performance plateau at very large vector counts; limited filter pushdown vs purpose-built engines.

Claims & capabilities

PostgreSQL license. Most-deployed open-source vector store.

Technical surface

API surface
SQL via Postgres protocol
Backend storage
Postgres
Deployment
Self-hosted only — PostgreSQL extension; also offered inside managed Postgres (Supabase, AWS RDS, Azure, Neon, etc.)
Embedding model
BYO
Multi-tenancy
Logical isolation via Postgres schemas/databases; managed providers (Supabase, Neon, RDS) add tenant-level controls
MCP
yes — community Postgres MCP servers with pgvector tools (e.g. MOmayr/mcp-postgres-pgvector)
A2A
not supported
OpenTelemetry
via Postgres OTel

Compare pgvector with…

Similar systems

Other vector-database infrastructure in the catalog, ranked by inbound references.

  • Qdrant T1

    Distribution-Based Score Fusion + RRF. Sparse vectors native; filtering via ANN graph modification.

  • Chroma T1

    Limited native hybrid (users build RRF custom). Fast Rust core (v2.5). Acquired by Replit (definitive agreement announced 2026-10-23); Chroma Cloud is winding down (writes disabled 2026-11-22, reads disabled 2026-12-22) while open-source ChromaDB continues under Apache-2.0.

  • Weaviate T1

    Hybrid Search 2.0 with learned ranking. BM25 + vector in unified index.

  • Milvus T1

    Multi-vector columns (10 simultaneous). Native hybrid search (v2.5). CAGRA + Vamana GPU/CPU (v2.6).

  • Pinecone T1

    Managed vector DB. Cascading sparse + dense + rerank pipeline; pinecone-rerank-v0 .

  • MongoDB Atlas Vector Search T1

    Agent memory store for both short-term (document) and long-term (vector). LangGraph checkpointer for stateful agents. Vector search extended to Community Edition (Sept 2025).

Sources (55 cited facts, 10 third-party)

Each fact links to the page it came from; the badge says who published it (how to read sources).

What changed

Changes to this record's lifecycle, licence, release, pricing and hosting facts, from the catalog's git history. Subscribe (Atom)

  1. 2026-10-26
    • License “Custom” → “PostgreSQL” source
    • Latest release first recorded as “v0.8.6 (2026-07-29)” source
    • Pricing “Free (PostgreSQL License open source)” → “free (OSS)” source
    • Deployment “Self-hosted only (PostgreSQL extension; managed via Supabase/AWS RDS/etc.)” → “Self-hosted only — PostgreSQL extension; also offered inside managed Postgres (Supabase, AWS RDS, Azure, Neon, etc.)” source
    • MCP support “via Postgres MCP servers (community)” → “yes — community Postgres MCP servers with pgvector tools (e.g. MOmayr/mcp-postgres-pgvector)” source
    #258

Related systems

References (1)

  • LangChain (framework) integrates with · depends on at runtime — Used as agent conversation memory via LangChain + MCP.

Referenced by (17)

  • Agno (Phidata) Memory builds on — Postgres + pgvector default — operational simplicity for shops that already run Postgres.
  • Apache AGE integrates with — openCypher over Postgres. Pairs with pgvector for graph + vector hybrid retrieval.
  • Dify integrates with — Dify self-host VECTOR_STORE supports `pgvector` as the knowledge-base vector store. (verified 2026-10-29)
  • Haystack (framework) integrates with — Haystack integrations directory has a pgvector integration page ("A Document Store for storing and retrieval from pgvector"). (verified 2026-10-29)
  • LangChain (framework) integrates with — LangChain docs have a PGVector vector store integration page (langchain-postgres). (verified 2026-10-29)
  • Langflow integrates with — Langflow components bundle: PGVector vector store component. (verified 2026-10-29)
  • Letta / MemGPT depends on at runtime — backend-storage cell: Postgres + pgvector
  • LlamaIndex (framework) integrates with — LlamaIndex has an official vector store integration package llama-index-vector-stores-postgres in its repo. (verified 2026-10-29)
  • Mastra integrates with — Mastra repo ships the @mastra/pg package (PgVector, vector search using pgvector). (verified 2026-10-29)
  • Mem0 integrates with — Mem0 docs have a pgvector vector store page for Mem0 open source. (verified 2026-10-29)
  • Mem0 Security / OpenMemory builds on · depends on at runtime — For privacy-first deployments the self-hosted path is now the Mem0 open-source server (REST API + dashboard via Docker Compose with pgvector Postgres, admin setup wizard, per-user API keys, request…
  • Memobase depends on at runtime — backend-storage cell: Postgres + pgvector
  • Microsoft Semantic Kernel integrates with — Semantic Kernel Postgres vector store connector docs say it uses the pgvector extension. (verified 2026-10-29)
  • n8n (AI agent flows) integrates with — n8n built-in AI cluster node: PGVector Vector Store node. (verified 2026-10-29)
  • OpenLLMetry (Traceloop) integrates with — OpenLLMetry's What's Supported page lists pgvector as instrumented out of the box. (verified 2026-10-29)
  • Phidata (now Agno) integrates with — Agno ships a pgvector vector DB integration module (agno.vectordb.pgvector). (verified 2026-10-29)
  • Supabase Vector integrates with — Supabase AI & Vectors: vector store and embeddings support using Postgres and pgvector. (verified 2026-10-29)