Comparison
pgvector vs Pinecone, Qdrant and Weaviate
When storing embeddings in Postgres with pgvector is enough, and when a dedicated vector database such as Pinecone, Qdrant or Weaviate earns its extra cost.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
If you already run Postgres, the cheapest vector database is the one you have. pgvector adds a vector type and approximate nearest-neighbour indexes to Postgres, so embeddings sit next to your other data, under the same backups, permissions and transactions. Dedicated vector databases exist because some workloads outgrow that. The question is whether yours will.
This page compares pgvector with three dedicated options, Pinecone, Qdrant and Weaviate, on what tends to decide the choice. Facts were checked against each project’s documentation and licence on 20 November 2026. We do not quote benchmark numbers: vector search performance depends heavily on dimensions, filters, recall targets and hardware, and published benchmarks rarely match your workload. Run your own with your data.
At a glance
| pgvector | Pinecone | Qdrant | Weaviate | |
|---|---|---|---|---|
| What it is | Postgres extension | Managed vector database | Vector database (Rust) | Vector database (Go) |
| Licence | PostgreSQL licence | Proprietary service | Apache-2.0 | BSD-3-Clause core (some modules under the Weaviate License) |
| Run it yourself | Anywhere Postgres runs; most managed Postgres services include it | No | Yes, single binary or container | Yes |
| Managed option | Your Postgres provider | Yes (the only option) | Qdrant Cloud | Weaviate Cloud |
| Index types | HNSW, IVFFlat, exact | Managed (serverless) | HNSW with payload-aware filtering | HNSW, flat, dynamic |
| Filtering | Ordinary SQL WHERE; applied after the ANN scan, with iterative scans since 0.8 |
Metadata filters | Filters applied during the HNSW search | Filters on properties |
| Keyword and hybrid search | Postgres full-text search, combined in SQL (or BM25 via extensions) | Sparse-dense vectors in one index | Sparse vectors plus dense, fused in the query API | BM25 and vector hybrid built in |
| Joins and transactions | Yes, it is Postgres | No | No | No |
| Max indexed dimensions | 2,000 (vector), 4,000 (halfvec) |
See service limits | See docs | See docs |
When Postgres is enough
pgvector is usually the right starting point when:
- You already run Postgres. One less system to deploy, secure, back up and monitor. Your team already knows how to operate it.
- Your data is relational. Documents belong to tenants, have permissions, versions and timestamps. With pgvector, a query can filter by tenant, join to permissions and rank by similarity in one statement, inside one transaction. Keeping that consistent across two databases is real work.
- Your scale is moderate. Many production RAG systems index somewhere between thousands and a few million chunks. HNSW in Postgres handles that comfortably on ordinary hardware.
- You want hybrid search without another service. Postgres full-text search and pgvector combine in one SQL query with reciprocal rank fusion. Hybrid search and reranking in Postgres shows how.
Know the limits:
- HNSW indexes must fit in memory to be fast. Large indexes need large instances.
- Filters run after the approximate search. A highly selective filter (one tenant among thousands) can return too few results unless you enable iterative scans, use partial indexes, or partition by the filter column. pgvector’s README covers each.
- Index builds on millions of vectors are slow and memory-hungry. Plan for them.
- Postgres’s built-in text ranking is not BM25. Extensions such as
pg_textsearch(PostgreSQL licence) or ParadeDB’spg_search(AGPL) add BM25 if you need it.
Extensions also push the ceiling up. Timescale’s pgvectorscale (PostgreSQL licence) adds a disk-based index type designed for larger datasets.
When a dedicated database earns its place
Consider a dedicated vector database when:
- Vectors are the main workload, at a scale where a Postgres instance big enough to hold the index in memory is more expensive or harder to run than a purpose-built service.
- Filtered search is central and selective. Qdrant applies payload filters during the graph search, which keeps recall stable with tight filters. This is its main architectural difference from pgvector.
- You want built-in hybrid search and vectorisation. Weaviate combines BM25 and vector search natively and can call embedding models for you through modules. Qdrant supports sparse and dense vectors in one collection with fusion in the query API.
- You do not want to operate anything. Pinecone is fully managed and serverless, with hosted embedding and reranking models available, so a small team can ship without a database administrator.
- You need features Postgres lacks, such as multi-vector representations or specific quantisation schemes, and your evaluation shows they matter for your data.
The cost nobody puts in the table
A second database means keeping two stores in sync. Every document insert, update, delete and permission change must reach both. If a user loses access to a document in Postgres but its chunks stay in the vector store, your RAG system will happily retrieve them. Plan for:
- an outbox or change-data-capture pipeline from your source of truth to the vector store;
- deletes and permission changes propagating, not just inserts;
- re-indexing when you change embedding model (all vectors must be recomputed);
- monitoring for drift between the two.
With pgvector, much of that disappears because the embedding is a column in the same row.
A decision path
- Already on Postgres, under a few million chunks, relational filters? Start with pgvector.
- Not running Postgres and want zero operations? Pinecone, or the managed tier of Qdrant or Weaviate.
- Heavy, selective filtering at large scale and happy to self-host? Evaluate Qdrant.
- Want hybrid search and embedding generation inside the database? Evaluate Weaviate.
- Unsure? Start with pgvector behind a small retrieval interface in your code. If you outgrow it, swapping the implementation behind that interface is a contained change.
Next steps
- Build hybrid retrieval in Postgres with Hybrid search and reranking.
- Get the basics right first in Embeddings and vector search.
- Ship a complete pipeline with RAG pipeline in a day.
- Measure retrieval with Chunking strategies for RAG, tested.
- Start from the concepts in RAG fundamentals: what RAG is and how it works.
- Check whether you need retrieval at all in RAG vs fine-tuning vs long context.
Covers
Related
- Hybrid search and reranking in Postgres
Combine Postgres full-text search and pgvector with reciprocal rank fusion in one SQL query, rerank the top results with a cross-encoder, and measure the gain.
- Embeddings and vector search, hands on
Embed documents, store them in Postgres with pgvector, index them and run similarity and hybrid search.
- RAG pipeline in a day with Postgres and pgvector
Ingest your documents, answer with citations and measure retrieval against 20 questions written first.
- pgvector
Postgres extension for vector similarity search with HNSW and IVFFlat indexes.
- Qdrant
Open-source vector database in Rust with payload filtering and hybrid search.