Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
upstream: github.com/milvus-io/milvus (opens in new tab) · github.com/pgvector/pgvector (opens in new tab)
Pick pgvector
If your data already lives in PostgreSQL, or you want vectors in the same transactions, joins and backups as everything else.
Pick Milvus
If vector search is its own service and you want more index types, built-in BM25 search or a path to a distributed Kubernetes deployment.
These two answer the same query, "find the nearest embeddings", from opposite starting points. pgvector is an extension that adds vector types to PostgreSQL. Milvus is a vector database of its own, which in Standalone mode runs beside etcd and MinIO.
pgvector is a PostgreSQL server with one extra extension. Vectors sit in ordinary tables, so you can join them to your rows, change both in one transaction, and rely on the write-ahead log for replication and point-in-time recovery. Any Postgres client library can query it.
Milvus is reached over gRPC or REST through its SDKs. Our install runs the Milvus container with etcd for metadata and MinIO for data, plus a short-lived job that fixes volume ownership. Upstream also offers Milvus Lite as a Python library and a distributed deployment for Kubernetes.
Milvus has the longer menu: FLAT, IVF, HNSW, SCANN and DiskANN with quantized variants, GPU and sparse indexes, built-in BM25 full-text search and hybrid search across several vector fields. Its default config allows up to 32,768 dimensions.
pgvector offers exact search, HNSW and IVFFlat. Indexed columns stop at 2,000 dimensions for vector and 4,000 for halfvec. With approximate indexes, a WHERE filter is applied after the index scan, so a narrow filter can return fewer rows than asked; iterative index scans address that. Hybrid search means combining it with PostgreSQL full-text search yourself.
Our pgvector file generates a password but publishes port 5432 on all interfaces. Milvus authentication is off by default, and our snippet leaves it off while publishing ports 19530 and 9091. Firewall either before loading real data.
Idle at first boot on a GCP e2-standard-2, the Milvus stack used ~195 MB of RAM and ~2.4 GB of disk (October 2026). pgvector used ~30 MB of RAM and ~669 MB of disk (November 2026). These are near-empty instances and say nothing about performance with millions of vectors.
pgvector is 2 out of 5: one pinned image, then CREATE EXTENSION vector. Milvus is 3 out of 5. Milvus is Apache-2.0; pgvector uses the PostgreSQL licence.
Choose pgvector if you already run PostgreSQL or want one system to back up. Choose Milvus if vectors are the main workload and you want its index choice or expect to move to a cluster.
For a single-container dedicated alternative, see Milvus vs Qdrant. Install files are on the Milvus and pgvector pages.
pgvector lists a lower minimum: 512 MB vs 8192 MB for Milvus.
No. Milvus is Apache-2.0, pgvector is PostgreSQL.
pgvector if the application already uses PostgreSQL or needs joins and transactions around its vectors. Milvus if you want a dedicated vector service with more index types and a distributed mode.
No. It is an extension: you run PostgreSQL, execute CREATE EXTENSION vector and use a vector column.
Up to 2,000 for the vector type and 4,000 for halfvec with HNSW or IVFFlat. Binary vectors can be indexed up to 64,000.
No. Authentication is off in the default configuration; enable authorizationEnabled and change the root password.
Vectors inside PostgreSQL, or a separate search engine with its own API and dashboard.
One Rust container with its own storage, or a Standalone stack with etcd and MinIO that scales up to Kubernetes.
A single-node server that embeds text with a default model for you, or a Rust engine with payload filters, quantization and Raft clustering.