pgvector is live · free · last verified 28 Nov 2026 · viability healthy
pgvector
pgvector adds vector similarity search to Postgres so you can store embeddings next to relational data and query them in plain SQL
If Postgres is already your system of record, pgvector is the least expensive way to get semantic search working this week — one extension and SQL you already know. Quality isn't the constraint; scale is. Decide your exit path before you approach the volumes where a dedicated vector database earns its bill.
Verdict generatedVerified 4d ago · liveness 78/100 · cite: rightaichoice.com/tools/pgvector
- Teams already running Postgres that want semantic search with minimal architectural change
- RAG pipelines retrieving over documents that already live in relational tables
- Recommendation systems where embeddings sit beside product and user data
- Engineers avoiding the operational overhead of a second vector database
- Workloads heading toward billions of vectors that need distributed, multi-node search
- Teams that want a fully managed serverless vector service with automatic scaling
- Projects that need identical result sets before and after adding an approximate index
We scan public community discussion about pgvector and hand you an honest verdict, or say plainly when we cannot tie the posts to this tool.
- Honest verdict, not marketing
- Real pros & cons from real users
- Attributed quotes with receipts
Free scans included · no card needed
Skip pgvector if you need distributed multi-node search across billions of vectors, serverless autoscaling with zero tuning, or identical result sets before and after adding an approximate index.
The extension is free, but the database is not: pgvector's memory and CPU footprint lands on whichever Postgres instance or managed plan you run it on, so a bigger instance is the real bill.
pgvector itself costs $0 under the MIT license — your spend is whatever Postgres you run it on. That undercuts a dedicated managed vector database for teams already paying for Postgres, and stays cheaper than standing up Pinecone, Weaviate, or Qdrant alongside it. The crossover comes at distributed multi-node scale, where a managed vector service's bill buys operational relief pgvector does not provide.
In short
pgvector — pgvector adds vector similarity search to Postgres so you can store embeddings next to relational data and query them in plain SQL. Best for Teams already running Postgres that want semantic search with minimal architectural change, RAG pipelines retrieving over documents that already live in relational tables, Recommendation systems where embeddings sit beside product and user data. Free to use.
No head-to-head comparison for pgvector yet — the alternatives below are the closest matches we list.
What is pgvector?
pgvector — pgvector adds vector similarity search to Postgres so you can store embeddings next to relational data and query them in plain SQL. Best for Teams already running Postgres that want semantic search with minimal architectural change, RAG pipelines retrieving over documents that already live in relational tables, Recommendation systems where embeddings sit beside product and user data. Free to use.
pgvector is an open-source Postgres extension — MIT licensed, ~23.9k GitHub stars — that turns an existing Postgres database into a place to store embeddings and run vector similarity search. You enable it once with CREATE EXTENSION vector, add a vector(3) column to a table (or ALTER an existing one), insert embeddings, and pull nearest neighbors with ORDER BY embedding <-> '[3,1,2]' LIMIT 5. No new service, no new client library: any language with a Postgres driver works. Distance functions cover L2 (<->), negative inner product (<#>), cosine (<=>), L1 (<+>), plus Hamming (<~>) and Jaccard (<%>) for binary vectors. Storage handles single-precision, half-precision, binary and sparse vectors. Out of the box queries are exact nearest neighbor search with perfect recall; adding an HNSW or IVFFlat index moves you to approximate search and, as the README warns outright, you will see different query results after the index exists. Loading and maintenance are ordinary SQL: bulk COPY including binary format, ON CONFLICT upserts, updates, deletes, and AVG() with GROUP BY over vector columns. v0.8.7 supports Postgres 13+ and installs by compiling from source or via Docker, Homebrew, PGXN, APT, Yum, pkg, APK or conda-forge; it also comes preinstalled with Postgres.app and many hosted providers. Its pitch is architectural simplicity rather than raw vector throughput. Embeddings inherit transactions, JOINs and point-in-time recovery you already run, which is why backend and ML teams reach for it before standing up Pinecone or Qdrant. Past that comfort zone, a distributed vector store is the honest answer.
Key features
- Exact nearest neighbor search with perfect recall by default
- Approximate nearest neighbor search with HNSW indexes
- Approximate search with IVFFlat indexes
- Store single-precision, half-precision, binary and sparse vectors
- L2, inner product, cosine and L1 distance operators
- Hamming and Jaccard distance operators for binary vectors
- Nearest-neighbor queries via ORDER BY and LIMIT in SQL
- Distance-threshold filtering with WHERE clauses
- Quantization to cut memory at high vector counts
- Bulk loading with COPY, including binary format
- Upsert, update and delete embeddings with standard SQL
- ACID compliance and point-in-time recovery inherited from Postgres
- AVG() and GROUP BY aggregates over vector columns
- Supports Postgres 13+ (current release v0.8.7)
- Works with any language that has a Postgres client
Behind the verdict
Where pgvector bites hardest is in what it doesn't ask of you. No new service to deploy, no second backup strategy, no extra on-call rotation. Your embeddings sit in the same tables as the product catalog or ticket history they describe, so a JOIN is a JOIN and a transaction really is a transaction. We'd reach for it whenever retrieval happens over rows that already live in Postgres — RAG over internal documents, recommendations next to user and order tables, dedupe and clustering jobs that start from a CSV import. Bulk load with COPY, build an HNSW index when latency matters, and you have a working pipeline in an afternoon. The caveat people skip past: the README says plainly you'll get different results after adding an approximate index. Exact scan first, then index, then re-run your evaluation set. Teams that assume bit-identical results between the two end up debugging phantom regressions. Index choice follows the same logic — HNSW wins the speed-recall tradeoff but builds slower and eats memory; IVFFlat wants representative data before the index is worth anything. When to pass. If your roadmap points at billions of vectors spread across tenants, or you want a managed serverless endpoint that scales without touching a cluster, a dedicated vector database is the better fit — the ceiling is architectural, not a defect. Same if procurement needs a vendor SLA and support contract; MIT licensing cuts both ways. Comparison shopping: against a dedicated vector store the tradeoff is operational surface vs. peak recall and distributed scale, not feature checklist. And the ceiling is measured in vectors and memory, not quality — teams at moderate volume rarely regret choosing pgvector, they regret discovering the limit after building on it.
Limitations
- pgvector is a Postgres extension, not a standalone service: you install it into your own database with CREATE EXTENSION vector and inherit Postgres's operational model, managing infrastructure, replication, and scaling yourself.
- Exact nearest neighbor search is the default; approximate search via HNSW or IVFFlat must be tuned, with recall differing between exact and indexed search.
- IVFFlat indexes require training data before they can be built, and HNSW builds are slower and more memory-hungry.
- It works with any language that has a Postgres client rather than exposing its own API.
as of 2026-10-21
Researching pgvector? Get your full AI stack in 60 seconds.
Free, no signup — tell us your goal and get tools matched to your budget & existing stack.
Is pgvector still active?
pgvector is live · free · last verified 28 Nov 2026 · viability healthy.
Viability score
How well maintained and how widely used is pgvector? Built from what the vendor actually publishes (docs, changelog, tutorials, integrations, pricing), whether the site is live, and how much real users discuss it. How we calculate this
Last calculated: December 2026
How we score →What do users say about pgvector?
What people actually say about pgvector — is it worth it?
We scanned public community sources for pgvector on Nov 23, 2026 and could not establish that the discussion we found is about this tool rather than something else sharing its name. Only 0 of the posts we fetched could be positively tied to pgvector. Rather than publish a sentiment score built on the wrong subject, we publish nothing here and re-run the scan.
How we verified this
Every listed fact about pgvector — pricing, features, links, status — is re-read from the vendor's own pages by our verification pipeline and each change is logged with a date; the last pass ran on 28 Nov 2026. Analysis is drafted with AI models and checked against our editorial standards before publishing; see how we verify.
Verification history
We have re-verified pgvector 26 times since . Each pass re-reads the vendor's own pages and re-checks every listed field against that evidence; passes where nothing had changed are marked as such.
- — changed summary, who it suits, description, pricing tiers, our verdict
- — changed pricing page
- — changed our verdict, summary, description, pricing tiers
- — changed pricing page, limitations
- — changed pricing tiers, description, summary, our verdict, features
- — changed pricing page
Showing the 6 most recent of 26 verification passes.
Free to cite with attribution — this page re-verifies continuously.
How much does pgvector cost in 2026?
pgvector: Free to use. Pricing last verified 28 Nov 2026.
Plans compared
Every published pgvector tier, its price as the vendor publishes it, who it fits, and what it adds over the tier below. The 12-month cost projection follows.
| Plan | Price | Billing | Who it's for |
|---|---|---|---|
| Open Source (MIT) | Free | — | Any team running Postgres 13+ that wants vector search without a second datastore or a software license line item.Adds: Starting and only tier: the full extension under MIT, with no usage restrictions, seat counts, or vector quotas imposed by the project. |
12-month cost
Project the real annual outlay, including the implied monthly cost when only an annual tier is published.
Prices as the vendor publishes them, including any current offer. Add-on usage, seat overages, and contract minimums are surfaced under Hidden costs & gotchas.
Where the pricing makes sense
The company stage and team size where pgvector's pricing actually pencils out — and where peers do it cheaper.
pgvector itself costs $0 under the MIT license — your spend is whatever Postgres you run it on. That undercuts a dedicated managed vector database for teams already paying for Postgres, and stays cheaper than standing up Pinecone, Weaviate, or Qdrant alongside it. The crossover comes at distributed multi-node scale, where a managed vector service's bill buys operational relief pgvector does not provide.
Has pgvector's pricing changed?
No plan price for pgvector has moved since we began tracking it in Aug 2026; the pricing page is re-read on every verification pass.
Who should pick pgvector?
Pick pgvector if you are Teams already running Postgres that want semantic search with minimal architectural change, RAG pipelines retrieving over documents that already live in relational tables, Recommendation systems where embeddings sit beside product and user data, Engineers avoiding the operational overhead of a second vector database.
Look elsewhere if you are Workloads heading toward billions of vectors that need distributed, multi-node search, Teams that want a fully managed serverless vector service with automatic scaling, Projects that need identical result sets before and after adding an approximate index, Buyers who want a vendor SLA and support contract rather than an MIT-licensed extension.
Skip it if Skip pgvector if you need distributed multi-node search across billions of vectors, serverless autoscaling with zero tuning, or identical result sets before and after adding an approximate index.
GeneratedReal-world workflow fit
Concrete scenarios for the personas pgvector actually fits — and what changes day-one when you adopt it.
You have a products table and want similar-item search. You run CREATE EXTENSION vector, ALTER TABLE products ADD COLUMN embedding vector(1536), backfill from your embedding job, and query ORDER BY embedding <=> $1 LIMIT 10.
Outcome: Similar-item search ships in the same database, inside the same transactions and backup policy, with no new service to monitor or pay for.
You store document chunks and their embeddings in Postgres, add an HNSW index once volume grows, and retrieve with a cosine-distance query filtered by tenant_id and date in the same SQL statement.
Outcome: Retrieval runs as one query against rows you already own, with relational filters applied server-side before results come back.
You move from exact search to an IVFFlat index after loading training data, then switch to half-precision or binary vectors and quantization as counts climb, and finally adopt disk-based indexes when the dataset outgrows RAM.
Outcome: You keep one database through several growth stages, accepting tuned recall instead of provisioning a separate vector store.
Use cases
- Build semantic search over documents, images, or audio by storing embeddings and querying nearest neighbors in SQL.
- Power recommendations by finding similar user or item vectors inside your existing Postgres schema.
- Ground a RAG chatbot with a retriever that is a single pgvector query against rows you already store.
- Combine vector similarity with relational filters — similar products under $50 in one statement.
- Detect anomalies by measuring L2 or cosine distance between normal and anomalous vectors.
- Add a semantic layer to an existing app without provisioning a second database.
Setup time & first value
How long it actually takes to get something useful out of pgvector — broken out by persona, not the marketing-page minute.
Backend engineer already on Postgres: minutes to CREATE EXTENSION vector and insert a first vector; an afternoon to backfill embeddings and add an index. ML engineer: roughly a day to wire an embedding job and tune HNSW or IVFFlat recall against real queries. Platform team: a few days to plan quantization and index strategy across environments.
Switching to or from pgvector
How to bring data in from common predecessors and how to get it back out — written for the switcher, not the buyer.
- →From Pinecone: export vectors and metadata, write them to a vector column with COPY, rebuild HNSW or IVFFlat indexes, and keep relational metadata in real columns.
- →From Weaviate: dump objects with their vectors, map each class to a Postgres table, and replace GraphQL queries with SQL distance operators.
- →From Qdrant: export points with payloads, land vectors in a vector column and payloads in typed columns, then rewrite filtered searches as SQL WHERE clauses.
- →From FAISS: move serialized index contents into Postgres rows and let pgvector rebuild the index, replacing in-process search with SQL queries.
- ↗To Pinecone: export the vector column, push vectors and metadata to an index, and swap SQL distance queries for the Pinecone client API.
- ↗To Qdrant: dump id/vector/payload triples from your tables and re-ingest into a collection, then port filtered queries to Qdrant's filter syntax.
- ↗To Weaviate: export embeddings with their relational fields as objects in a class, then move retrieval to GraphQL.
- ↗To a managed Postgres with pgvector preinstalled: take a normal pg_dump and restore, since many hosted providers ship the extension already.
Integrations
Resources & guides
- Resourcegithub.com
GitHub
Open-source vector similarity search for Postgres. Contribute to pgvector/pgvector development by creating an account on GitHub.
- Resourcegithub.com
GitHub
Open-source vector similarity search for Postgres. Contribute to pgvector/pgvector development by creating an account on GitHub.
- Resourcegithub.com
pgvector/README.md at master
Open-source vector similarity search for Postgres. Contribute to pgvector/pgvector development by creating an account on GitHub.
Tutorials & Learning
YouTube returned 6 videos for “pgvector”, and we withheld 6: 6 could not be judged, because “pgvector” is a single word that other videos use for other things. We are showing none, because we could not prove any of them are about pgvector.
What are the best pgvector alternatives?
The closest alternatives to pgvector we list are Pinecone, Qdrant and Weaviate. Ranked by direct product-type match, not category overlap.
| Alternative | Pricing | Starts at | Last verified |
|---|---|---|---|
| Pinecone | Freemium | $20/mo | 29 Nov 2026 |
| Qdrant | Freemium | Free plan · usage-based paid tier | 28 Nov 2026 |
| Weaviate | Freemium | $45/mo | 29 Nov 2026 |
Frequently asked questions
Categories
For makers of pgvector
- Get a Verified Listing for pgvector ($39): a written decision within 1 working day.
- Free listing for another tool: Free reviews are decided in order, within 3 weeks of the review starting.
Used pgvector? Help shape our editorial sentiment research.