Comparisons

pgvector vs. Qdrant
pgvector is better when your data already lives in Postgres and you have up to a few million vectors. Qdrant is better for large, heavily filtered collections that need to scale out.
Last updated December 2026
pgvector is the better choice when your data already lives in Postgres and you have up to a few million vectors, because it adds vector search to the database you already run, with no new service to operate. Qdrant is the better choice when vector search is a core workload at tens of millions of vectors or more, or when most queries carry selective filters, because it is a purpose-built vector database with filtering inside the index, built-in quantization and horizontal scaling.
We make Exabase, which appears as a short third option near the end. This is a neutral comparison based on the pgvector and Qdrant GitHub READMEs, the pgvector licence file and the Qdrant pricing page, all checked on 4 December 2026.
Quick verdict
Choose pgvector if you already run Postgres, want vectors next to your relational data with joins and transactions, and your collection fits comfortably on one database server.
Choose Qdrant if you need fast filtered search at large scale, sharding across nodes, quantization to cut memory, or a managed vector service with a free tier.
Consider Exabase if what you need is search across files, documents and media without running an embedding pipeline or a vector database at all.
Comparison table
pgvector | Qdrant | |
|---|---|---|
What it is | Postgres extension | Standalone vector database written in Rust |
Licence | PostgreSQL License | Apache-2.0 |
Latest version (4 Dec 2026) | 0.8.7 | Not stated in the README |
Index types | HNSW and IVFFlat, or exact search with no index | HNSW with built-in quantization |
Vector types | vector, halfvec, bit, sparsevec | Dense, sparse and multivectors |
Indexed dimensions | Up to 2,000 (vector) or 4,000 (halfvec) | No limit stated in the README |
Filtering | SQL WHERE, applied after the index scan unless iterative scans are on | JSON payload filters with must, should and must_not |
Hybrid search | Postgres full-text search, fused in SQL | Sparse and dense vectors fused with RRF or DBSF |
Scaling | One Postgres server, plus read replicas and partitioning | Sharding and replication across nodes |
Multi-tenancy | Row-level security, partitions or schemas | Payload partitioning or separate collections |
Clients | Any Postgres client; README lists about 35 languages | Python, JavaScript and TypeScript, Go, Rust, Java, .NET; REST and gRPC |
Managed options | Most hosted Postgres services | Qdrant Cloud: free 1 GB cluster; usage-based Standard billed hourly |
Architecture and operations
pgvector is a Postgres extension. You install it, run CREATE EXTENSION vector, and add a vector column to an ordinary table. Embeddings sit in the same rows as the data they describe, so a product’s embedding lives beside its price, stock level and owner, and one SQL query can join, filter and rank by distance. Backups, replication, access control, point-in-time recovery and monitoring are whatever you already use for Postgres. For a team that runs Postgres well, that is the main argument for pgvector: no second database to secure, back up and keep in sync. The README lists install routes for Docker, Homebrew, APT, Yum, PGXN, conda-forge and source builds on Postgres 13 and later, and the extension is available on most hosted Postgres services.
Qdrant is a separate service written in Rust. It runs as a single Docker container for development, though the README notes that the default container starts without authentication, so add an API key before exposing it. In distributed mode it shards and replicates collections across nodes, with updates and resizing that need no downtime, and Qdrant Edge runs inside the application process for embedded or on-device use. Running Qdrant means one more system in your stack, and you have to keep it in step with your primary database: when a row changes in Postgres, something has to update or delete the matching point in Qdrant.
Winner: pgvector for teams already on Postgres. Qdrant for teams that want vector search as its own scalable service.
Indexing and performance
pgvector offers two approximate nearest neighbour indexes. HNSW gives the better speed and recall trade-off, with defaults of m 16, ef_construction 64 and hnsw.ef_search 40. IVFFlat builds faster and uses less memory; the README suggests rows divided by 1,000 as the number of lists up to a million rows, and the square root of the row count above that, with ivfflat.probes defaulting to 1. Without an index, pgvector runs exact search, which gives perfect recall and is fine for small tables. Indexed dimensions are capped at 2,000 for the vector type and 4,000 for halfvec, which stores half-precision floats and halves storage. Most current embedding models fit under those caps, and larger ones need halfvec or fewer embedding dimensions.
Qdrant builds HNSW graphs and adds built-in vector quantization, which it says reduces RAM use by up to 97%, trading a small amount of precision for memory and speed. It supports GPU-accelerated indexing on NVIDIA and AMD hardware. Because Qdrant does one job, its storage layout, on-disk options and segment management are designed around vectors rather than general rows.
At a few million vectors, a well-tuned pgvector HNSW index on a properly sized server returns results quickly, and many teams never need more. As collections grow into the tens or hundreds of millions, keeping the HNSW graph in memory on one Postgres server becomes expensive, index builds take longer, and vacuum and write load from the rest of the application compete with search. That is where Qdrant’s quantization and sharding earn their place. Both projects publish benchmarks that favour their own setups, so test with your own embeddings, filters and top-k values before deciding.
Winner: Qdrant at large scale. pgvector is enough for most small and medium collections.
Filtering
Filtering is the sharpest practical difference. In pgvector you filter with an ordinary WHERE clause, which is convenient, but approximate indexes apply the filter after the index scan. The README gives the example directly: if 10% of rows match a condition and hnsw.ef_search is at its default of 40, only about 4 rows come back on average. The fixes are well documented: a B-tree index on the filter column, partial indexes when there are a few distinct values, table partitioning when there are many, and iterative index scans, added in version 0.8.0, which keep scanning the index until enough rows match or a limit is reached. They work, but each needs thought, and a very selective filter on a large table still needs care.
Qdrant treats metadata filtering as a core feature. You attach JSON payloads to each point and filter on keywords, full text, numeric ranges and geo-location, combining conditions with must, should and must_not clauses, and you can index payload fields so filters are applied as part of the vector search. A query for similar documents in workspace 42, written in the last 30 days and in English, returns a full page of results without extra tuning.
Winner: Qdrant for filtered search. pgvector when the filter is a join or a condition that only makes sense in SQL.
Hybrid search
pgvector stores sparse vectors as sparsevec, with up to 1,000 non-zero elements in an index, and for keyword matching it leans on Postgres full-text search: tsvector columns, GIN indexes and ranking functions. You combine the two result lists yourself, with reciprocal rank fusion in SQL or a cross-encoder reranking step. The flexibility is real, and so is the amount of SQL you maintain.
Qdrant stores sparse vectors beside dense vectors in the same collection and fuses them in one query with RRF or distribution-based score fusion. Teams usually generate the sparse side with a model such as SPLADE or a BM25 encoder before upserting. For why exact-term matching matters next to semantic matching, see hybrid search and hybrid search for names, codes and SKUs.
Winner: Qdrant for built-in fusion. pgvector if you already rely on Postgres full-text search.
Multi-tenancy
In pgvector, tenancy is a Postgres question: a tenant_id column with row-level security, table partitions per tenant, or separate schemas or databases. Row-level security policies are enforced by the database, which is stronger than remembering a filter in application code, though combining a tenant filter with an approximate index brings back the filtering issue above. Qdrant supports payload-based partitioning so many tenants can share a collection with tenant-aware indexing, and separate collections where stronger tenant isolation is needed.
In both, the vectors are only part of a tenant’s data. Files, extraction outputs and any agent memory need their own isolation too. See vector database namespaces, multi-tenant isolation and the best vector database for multi-tenant apps.
Winner: Tie. pgvector for policy-enforced isolation in SQL, Qdrant for many tenants in one collection at scale.
Developer experience
With pgvector you write SQL. Every Postgres client works, and the README links client libraries and examples for about 35 languages. Distance operators are compact: <-> for L2 distance, <=> for cosine distance, <#> for negative inner product and <+> for L1, plus Hamming and Jaccard for bit vectors; cosine similarity is 1 minus the cosine distance. Because writes are transactional, an embedding and its row are committed together, so the index never drifts from your data.
Qdrant has official SDKs for Python, JavaScript and TypeScript, Go, Rust, Java and .NET, a REST API with an OpenAPI specification, and a gRPC API for faster production calls. The API is built around collections, points and payloads, which is quick to learn, though it is one more data model beside your main database.
Winner: pgvector for teams fluent in SQL. Qdrant for a dedicated, well-documented vector API.
Pricing
pgvector is free and open source under the PostgreSQL License. What you pay for is the Postgres server it runs on, self-hosted or managed, and the memory an HNSW index needs at your size. If Postgres is already in your budget, small and medium vector workloads add little.
Qdrant is free to self-host under Apache-2.0. Qdrant Cloud has a free-forever cluster with 0.5 vCPU, 1 GB of RAM and 4 GB of disk. The Standard tier is usage-based and billed hourly, and the pricing page points to a calculator rather than listing rates. Premium adds SSO and a higher uptime SLA for a minimum spend that is not published, and Hybrid Cloud and Private Cloud are priced through sales. The page shows SOC 2, GDPR and HIPAA badges without tying them to a tier. See Qdrant pricing.
Winner: pgvector when Postgres is already paid for. Qdrant Cloud for a free managed starting point.
Who should choose pgvector
pgvector suits product teams whose source of truth is Postgres and whose collections run from thousands to low millions of vectors: semantic search over a catalogue, support articles or user content, or a first RAG pipeline. A real-world example: a B2B SaaS app stores help-centre articles in Postgres with an embedding column, enforces tenant access with row-level security, and runs one SQL query that filters by plan, joins to permissions and orders by cosine distance. The RAG pipelines use case covers the wider design.
Who should choose Qdrant
Qdrant suits teams where vector search is a core workload: tens of millions of vectors, strict latency targets, heavy filters, or a shared retrieval service across products. A real-world example: a marketplace indexes 50 million listing images in Qdrant with payloads for category, price and location, uses quantization to keep memory costs down, and runs filtered similarity queries across a sharded cluster.
Moving from pgvector to Qdrant
Export ids, vectors and the columns you filter on, map those columns to Qdrant payloads, and create a collection with the same vector size and distance metric: cosine for <=>, dot product for <#> and Euclidean for <->. Upsert in batches, add payload indexes for the fields you filter on, then compare recall on a set of real queries before switching traffic. Keep Postgres as the source of truth and update Qdrant from the same write path, so deletes and edits reach both.
A third option: Exabase
pgvector and Qdrant store and search vectors you create. You still choose an embedding model, parse each file type, chunk text and keep the index in sync with your source data. Exabase takes a different approach. Store a file, note or bookmark as a Resource and it is extracted and indexed automatically, then Deep Search returns the matching passage with its page number, or the video scene with its timestamp, using hybrid semantic and keyword search with a precision setting per query. Bases give each tenant an isolated environment with its own search index, files and memory. Exabase is not a general-purpose vector database: you cannot bring your own vectors or choose index types, so if you need that control, pgvector or Qdrant is the better fit. The searching resources guide shows the API, the end of the embedding pipeline explains the approach, and Exabase vs pgvector and Exabase vs Qdrant compare it directly. For why retrieval quality slips as a corpus grows, see RAG accuracy and a vector database is not a knowledge base.
How we compared
We read the pgvector and Qdrant GitHub READMEs, the pgvector licence file and the Qdrant pricing page on 4 December 2026. We compared architecture and operations, indexing, filtering, hybrid search, multi-tenancy, developer experience and pricing. Performance claims are the projects’ own, and the real-world examples are illustrative.
Frequently asked questions
Is pgvector better than Qdrant?
pgvector is better when your data already lives in Postgres and your collection runs to the low millions of vectors. Qdrant is better for large collections, selective filters and horizontal scaling.
What is the difference between pgvector and Qdrant?
pgvector is an extension that adds vector types, distance operators and HNSW and IVFFlat indexes to Postgres. Qdrant is a standalone vector database written in Rust, with payload filtering, quantization and sharding built in. See vector database vs relational database.
Is pgvector free?
Yes. pgvector is open source under the PostgreSQL License, and you pay only for the Postgres server it runs on.
Is Qdrant free?
Qdrant is free to self-host under Apache-2.0, and Qdrant Cloud has a free-forever cluster with 0.5 vCPU, 1 GB of RAM and 4 GB of disk. Paid cloud usage is billed hourly.
How many vectors can pgvector handle?
pgvector handles millions of vectors comfortably on a well-sized server with an HNSW index. Beyond tens of millions, memory, index build time and filtered recall need more care, and a dedicated engine such as Qdrant is often easier to run.
What is the dimension limit in pgvector?
pgvector stores vectors of up to 16,000 dimensions but indexes up to 2,000 for the vector type and 4,000 for halfvec. Bit vectors can be indexed up to 64,000 dimensions.
Why does pgvector return fewer results with a filter?
pgvector applies filters after the approximate index scan, so a selective filter can leave only a few rows. Iterative index scans, added in 0.8.0, partial indexes and partitioning fix this.
Does pgvector support hybrid search?
Yes, by combining a vector query with Postgres full-text search and merging the results with reciprocal rank fusion or a reranker. Qdrant does the fusion in a single query.
Is Qdrant faster than pgvector?
Usually at large scale and with selective filters, because Qdrant is built only for vector search and filters inside the index. At small scale the difference is often small, so benchmark with your own data.
Can I use pgvector and Qdrant together?
Yes. A common pattern keeps Postgres as the source of truth and syncs embeddings to Qdrant for search, though you then own that sync.
How do I move from pgvector to Qdrant?
Export ids, vectors and filter columns, map columns to payloads, create a Qdrant collection with the same dimension and distance metric, and upsert in batches. Compare recall on real queries before switching.
What are the alternatives to pgvector and Qdrant?
Pinecone, Weaviate, Milvus and Chroma are the common alternatives. See pgvector alternatives, Qdrant alternatives and the best vector databases.
Is Exabase a vector database?
No. Exabase is infrastructure for AI agents that indexes stored files, notes and media automatically and searches them with Deep Search, so you do not manage vectors or indexes yourself.
Related pages: pgvector vs Pinecone, Pinecone vs Qdrant, Weaviate vs Qdrant, Chroma vs Qdrant, Qdrant vs Milvus, Qdrant review, pgvector alternatives, Best vector databases, Vector database, Deep Search
Compare similar apps and tools:

LangGraph vs. OpenAI Agents SDK

CrewAI vs. AutoGen

n8n vs. Zapier

Relevance AI vs. Lindy

Temporal vs. Inngest

Inngest vs. Trigger.dev

E2B vs. Modal

E2B vs. Modal

E2B vs. Daytona

People Data Labs vs. Apollo

ScreenshotOne vs. Urlbox

Microlink vs. Iframely

AWS Rekognition vs. Google Cloud Vision

Twelve Labs vs. Mixpeek

Twelve Labs vs. Google Video Intelligence

ElevenLabs vs. Deepgram

Deepgram vs. Speechmatics

AssemblyAI vs. Gladia

Zyte vs. ScrapingBee

Bright Data vs. Oxylabs

Google Document AI vs. Azure Document Intelligence

Rossum vs. Nanonets

Mindee vs. Veryfi

Reducto vs. Extend

LlamaParse vs. Mistral OCR

LlamaParse vs. Docling

Bedrock Knowledge Bases vs. Vertex AI Search

Vectara vs. Ragie

LanceDB vs. Chroma

MongoDB Atlas vs. Pinecone

Weaviate vs. Milvus

Vespa vs. Elasticsearch

Algolia vs. Typesense

Typesense vs. Meilisearch

Elasticsearch vs. OpenSearch

LangMem vs. Zep

Vertex AI Memory Bank vs. AWS AgentCore Memory

AWS AgentCore Memory vs. Mem0

Letta vs. Cognee

Zep vs. Cognee

Bedrock Knowledge Bases vs. Azure AI Search

OpenAI file search vs. Pinecone

Docling vs. Unstructured

Azure Document Intelligence vs. Textract

Mistral OCR vs. Textract

Reducto vs. Unstructured

Apify vs. ScraperAPI

Firecrawl vs. ScraperAPI

turbopuffer vs. Pinecone

pgvector vs. Qdrant

Chroma vs. Weaviate

Qdrant vs. Milvus

Letta vs. LangMem

Cognee vs. Mem0

Supermemory vs. Zep

CrewAI vs. LangGraph

LangChain vs. LlamaIndex

Whisper vs. Deepgram

Deepgram vs. AssemblyAI

Textract vs. Google Document AI

Docling vs. Marker

LlamaParse vs. Reducto

LlamaParse vs. Unstructured

Firecrawl vs. Apify

Firecrawl vs. Jina

LangMem vs. Mem0

Mem0 vs. Supermemory

Zep vs. Letta

Mem0 vs. Letta

pgvector vs. Pinecone

Mem0 vs. Zep

Milvus vs. Pinecone

Chroma vs. Qdrant

Weaviate vs. Qdrant

Pinecone vs. Qdrant

Pinecone vs. Chroma

Pinecone vs. Weaviate