Choosing pgvector vs Weaviate for your vector search
Choose pgvector when your vectors should sit beside relational records in a Postgres server your organization already operates, so one backup, access and audit routine covers both. Choose Weaviate when you need a dedicated vector service with its own deployment, whether Docker, Kubernetes or Weaviate Cloud, and optional enterprise features you would license separately. Three questions decide which fits: where the data lives, who operates the database, and how many applications will query the same index. Answer these before you compare benchmarks, because the answers usually point in one direction.
Start with where the data lives. pgvector stores vectors in ordinary Postgres tables, so a vector column can sit next to the rows it describes and be filtered with normal SQL, keeping updates to those rows in one transactional place. Weaviate stores objects and vectors together in its own store, so records that change in your source systems will need a sync process to stay current. On operations, pgvector inherits the backup, replication, role and patching routines your Postgres team already runs. Weaviate adds a service to own: the Kubernetes guide asks for Kubernetes 1.23 or later, Helm v3 or later and PersistentVolumes with ReadWriteOnce mounts, and Docker keeps its data under /var/lib/weaviate on a mounted volume. Confirm that your platform team will own that volume and its backups before you commit.
Then count the applications. One internal service that already talks to Postgres is a strong case for pgvector, but the index shares resources with your transactional workload, so test query latency under production write load. When several services, teams or languages need the same index, a dedicated service gives them one API surface. In the Docker image, Weaviate serves REST on port 8080 and gRPC on 50051, and its authentication documentation describes how access is controlled. Check which features you need against the edition terms, since enterprise features require a license key under the Weaviate License. Finally, load a sample of your embeddings at your real dimension count, keeping in mind that pgvector indexes vector columns up to 2,000 dimensions.
pgvector vs Weaviate by scenario: which one fits your team
This table matches common team scenarios to the better fit between pgvector and Weaviate, with the condition that makes each choice hold. Read each row against your own stack, because the answer depends on whether your records already sit in PostgreSQL and whether a Kubernetes platform is in place. The main takeaway is that pgvector fits when vectors belong with relational data, and Weaviate fits when the vector index works as a shared service.
| Scenario | Better fit | Why, and the condition that makes it hold |
|---|---|---|
| Vectors for an app whose records already live in PostgreSQL | pgvector | Vectors sit beside the rows they describe, so one backup and one access model cover both, if you already run Postgres. |
| Joins and transactions with other tables | pgvector | Similarity search can run in the same SQL statement and transaction as your filters and writes, if the vector column sits in that database. |
| Several applications sharing one vector index | Weaviate | Apps reach the index through a standalone service with its own authentication configuration. Confirm your auth model in the Weaviate docs. |
| Platform team with Kubernetes experience but no Postgres operator | Weaviate | The Helm guide needs Kubernetes 1.23 or later, Helm v3 and ReadWriteOnce volumes. Pick Weaviate if no Postgres operator is in place. |
| Existing stack already runs Weaviate, such as the Dify Docker Compose guide | Weaviate | The Dify guide starts Weaviate beside PostgreSQL, so keeping it adds no second vector store to patch and back up. |
| Legal review rejects separately licensed code | pgvector | Choose pgvector if your review rejects separately licensed code. Weaviate's wl directory and enterprise features need a license key. |
How pgvector and Weaviate are built and what each means for operations
Both products store vectors next to other data, but the place where that happens differs. pgvector inherits the operating model of your PostgreSQL server, while Weaviate runs as its own service with its own deployment targets. The cards below cover the architecture first, then the deployment choices, then the operating work that follows from them.
pgvector runs inside Postgres
pgvector adds a vector type and similarity search to a PostgreSQL server you already operate, so embeddings sit in the same database as your relational data and share its access controls. Search is exact by default, which gives precise results on small tables and a reference point for checking approximate results. For larger tables, add an HNSW or IVFFlat index, which trades some accuracy for speed. The extension supports Postgres 13 and later, so confirm your server version first. Test index build time and memory use on a copy of your data before you pick an index type.
pgvector repositoryWeaviate runs as a Go service
Weaviate is a Go service that stores objects and their vectors together, so it keeps its own data directory, ports and upgrade path apart from your relational database. A Docker deployment serves REST on port 8080 and gRPC on 50051, and keeps data under /var/lib/weaviate, which should sit on a mounted volume so it survives container replacement. Map those ports and the volume in your firewall rules and compose files, and confirm which of your clients need the gRPC port.
Weaviate Docker guideWeaviate on Kubernetes or Cloud
The Helm chart deploys Weaviate on Kubernetes 1.23 or later, with Helm v3 or later. Its PersistentVolumes use ReadWriteOnce mounts, so each volume attaches to one node at a time, which affects scheduling and failover planning. Weaviate Cloud moves cluster operation and the upgrade schedule to the vendor, which changes where your data is stored and who patches it. Compare that trade with self-hosting, and confirm the edition, license key and data location that apply to your use before you decide.
Kubernetes install guideWhat it means for operations
Backups, upgrades and on-call work differ by design. pgvector data should normally fall under your existing PostgreSQL backup and restore routine, while Weaviate needs its own procedure for the data directory or Kubernetes volumes. Confirm backup and restore procedures for each in the official docs before you assume either one meets your recovery targets. Upgrades also split: a Postgres major version change and a pgvector update are separate steps, and Weaviate ships several minor release lines in parallel, so read the release notes before each change.
Weaviate releasespgvector vs Weaviate feature by feature
This table compares pgvector and Weaviate on license, storage, indexing, distance functions, dimension limits, deployment, authentication, extensibility and managed options. Where a documented detail is missing, the cell names what to confirm and where. The main takeaway: pgvector suits teams that already operate PostgreSQL, while Weaviate suits teams that want a dedicated vector database with its own deployment and enterprise licensing.
| Capability | pgvector | Weaviate |
|---|---|---|
| License | PostgreSQL License, with copyright notices from the PostgreSQL Global Development Group and the Regents of the University of California. GitHub does not detect it automatically. | BSD-3-Clause core. Code in the wl directory falls under the Weaviate License, and enterprise features need a license key. |
| Storage model | Vectors are stored as columns alongside your other data inside a Postgres server you operate. | Stores both objects and vectors in one database written in Go. Confirm the data layout in the Weaviate documentation. |
| Index types | HNSW and IVFFlat approximate indexes, with exact search available by default. | Confirm the supported index types in the Weaviate documentation before you design around them. |
| Distance functions | L2, inner product, cosine, L1, Hamming and Jaccard. | Confirm the supported distance metrics in the Weaviate schema documentation for your embedding model. |
| Vector dimension limits | Indexing supports up to 2,000 dimensions for the vector type and 4,000 for halfvec. | Confirm any per-vector dimension limit in the Weaviate documentation for your embedding model. |
| Deployment options | Any Postgres 13 or later server you run, including hosted Postgres providers listed in the pgvector README. | Docker with a compose file, Kubernetes with a Helm chart (Kubernetes 1.23 or later, Helm v3), or Weaviate Cloud. |
| Authentication | Uses the roles and authentication of the Postgres server it runs in. Confirm TLS and role design with your DBA. | A published authentication guide. Confirm which schemes match your identity provider in the Weaviate authentication docs. |
| Extensibility | Installs as an extension, so vector queries sit alongside standard SQL, joins and other Postgres features. | Confirm which extension and enterprise features need a license key before you build on them. |
| Managed options | Available on hosted Postgres providers. Confirm vector support and extension version with each provider. | Weaviate Cloud, offered by the Weaviate organization. Confirm regions, editions and terms with the vendor. |
What each license allows and which features are paid
pgvector is released under the PostgreSQL License, a permissive license. The LICENSE file carries notices from the PostgreSQL Global Development Group and the Regents of the University of California, and it grants permission to use, copy, modify and distribute the code. GitHub does not detect this license automatically, so the repository page may show no license label. Read the LICENSE file yourself before a policy review. The license itself carries no fee, so your running cost sits in the PostgreSQL service and the staff who operate it.
- No license fee: The license places no fee on use, copying, modification or distribution. Your legal team should still confirm that the grant covers how you plan to use and redistribute the code.
- Recurring Postgres cost: Compute, storage, backups, high availability, monitoring and upgrades of the database server recur every month or year. You pay these to your cloud provider, data center team or managed Postgres vendor.
- Version coupling: The README says the extension supports Postgres 13 and later, and its install steps clone tag v0.8.7. Upgrading Postgres or pgvector is a planned change that needs testing and a rollback path.
- Hosted providers: The README links a list of hosted Postgres providers. Each provider sets its own fees and terms for the service, separate from the license.
- Staff time: Schema design, index tuning, query review and on-call coverage fall to your database team, and that effort grows with data volume.
Confirm that your Postgres distribution or hosted provider packages pgvector at the version you need, and read the LICENSE file at that tag.
Weaviate's source is licensed under the BSD-3-Clause License or the Weaviate License, according to the repository LICENSE. The split follows the directory structure. Code in the wl directory is enterprise-licensed under the Weaviate License, and enterprise features need a license key. Official binaries combine both editions, so the build you deploy may contain code that a key gates. Plan around that fact rather than assuming the open-source core covers your feature list.
- BSD-3-Clause code: Code outside the wl directory is under BSD-3-Clause. Check the LICENSE at the version you plan to run, because the terms apply per tag.
- Weaviate License code: Files in the wl directory fall under the enterprise license. Using them is governed by its terms, not by the BSD terms.
- Key-gated features: Enterprise features require a license key. List the features in your design and confirm which ones need a key and whether any run without one.
- Binary contents: Official binaries include both editions. Ask how the key is applied, whether validation needs outbound connectivity, and how it behaves in an air-gapped network.
- Deployment options: Weaviate can be run with Docker, on Kubernetes with Helm, or as Weaviate Cloud. The cost model differs for the managed service, and its subscription terms come from Weaviate.
Ask Weaviate in writing what the key covers, which instances or nodes it applies to, the term, the renewal process, what happens on expiry and which support is included.
License questions have different answers for each product, and the answers change by version. Gather them in writing before a shortlist becomes a purchase or a deployment plan. Treat the steps below as a checklist for procurement and legal reviewers, not as a legal opinion on either license.
- Read the exact LICENSE: For pgvector, open the LICENSE at the tag you will deploy. For Weaviate, open the repository LICENSE and check the wl directory at that same tag.
- Record versions: Note the Postgres major version, the pgvector tag and the provider that packages them. Confirm the extension is available on your managed service before design work starts.
- Map features to editions: List every feature in the design and mark which ones need a Weaviate license key. Ask for written confirmation of each mark.
- Get the key terms first: Request scope, term, renewal, expiry behavior, validation method and support before any pilot uses enterprise code.
- Assign cost owners: Name who pays for Postgres hosting, Weaviate infrastructure, any Weaviate subscription and the staff time for upgrades, and record a budget owner for each line.
Keep the written answers with the architecture record so that internal reviewers and external auditors can see how each license was checked.
The decision path from existing Postgres to a dedicated vector service
The diagram starts with where the vectors and related records live. If they sit in a Postgres server your team already operates, with spare capacity and a supported version, the path moves on. If not, Weaviate is the starting point. Next, it asks whether several applications need one shared index, which points to Weaviate, and whether Docker or Kubernetes is the team standard, since Weaviate documents both as deployment routes. Enterprise features trigger a license key check before Weaviate. Each path ends at pgvector or Weaviate, followed by a step to confirm the choice against the official docs.
Decision path from an existing Postgres server to pgvector or Weaviate.
What drives the running cost of pgvector and Weaviate
Running cost depends on where each workload lands, who operates it and how often it changes. The four cards below each name one driver and what to confirm before you compare totals. DeployOpen quotes this work from a written scope, so the same items are what to request in writing.
Shared server or dedicated compute
pgvector runs inside a Postgres server your team already operates, so its CPU, memory and storage are shared with every other workload on that server. Vector indexes add memory and disk pressure to that host, which can slow unrelated queries if you do not size for them. Weaviate runs as its own service with dedicated compute and persistent volumes, mounted at /var/lib/weaviate in the Docker image, so you budget for those resources separately. Load test both options on your own vectors and query mix before you compare infrastructure bills.
Postgres skills versus Kubernetes operations
pgvector needs Postgres administration: upgrades, backups, replication and connection limits, which a database team likely already runs. Weaviate adds container operations: Docker, or Kubernetes with Helm v3 or later, Kubernetes 1.23 or later and PersistentVolumes with ReadWriteOnce mounts. Setup and the first data migration are one-time work for either option. Patching, backup runs, restore drills and on-call rotations recur for the life of the system, so confirm who gets paged for a vector search incident before you choose.
Weaviate Kubernetes guideEnterprise key and subscription terms
Weaviate's repository is licensed under BSD-3-Clause or the Weaviate License, and code in the wl directory falls under the Weaviate License. Enterprise features need a license key, and the official binaries combine both editions, so confirm which features your build needs the key for. pgvector is under the PostgreSQL License and has no paid edition to buy. Get written terms from Weaviate for the enterprise license key, any subscription, support commitments and renewal before you commit.
Parallel release lines and exit cost
pgvector 0.8.7 was released on October 1, 2026, and its install instructions support Postgres 13 and later, so extension upgrades follow your Postgres upgrade cycle. Weaviate v1.41.0 shipped on 23 November 2026, while patch releases such as v1.40.8 and v1.39.17 ship on earlier minor lines, so you must pick a line and track its patches. Switching later means exporting vectors and metadata and rebuilding indexes in the new store, a cost that grows with data volume. In the quote, ask for written scope, the environments covered, backup restore testing and upgrade windows.
Weaviate releasesWhere pgvector and Weaviate projects usually run long
For pgvector, most of the schedule goes to schema design and index choice. Vectors sit in ordinary Postgres tables next to the business rows, so the team must decide the column type and dimension count early. The vector type can be indexed up to 2,000 dimensions and halfvec up to 4,000, so an embedding model with wider output may force a halfvec column. Choose between HNSW and IVFFlat by building both on a copy of the team's own data and measuring recall and latency against exact search. Plan the embedding pipeline to rerun whenever the model changes, and agree backups, vacuum schedules and upgrades with the Postgres platform owner. Ask that owner how long an index rebuild takes on the largest table, because the rebuild competes with production load and should be tested on the team's data first.
For Weaviate, the long stretch is usually data schema design: collection definitions, which properties are vectorized, and how tenants or access boundaries are modeled. Deployment work depends on the path. Docker serves REST on port 8080 and gRPC on 50051, with data stored under /var/lib/weaviate on a mounted volume, so that volume must survive container replacement and be included in backups. On Kubernetes, the installation guide requires Kubernetes 1.23 or later, Helm v3 or later and PersistentVolumes with ReadWriteOnce mounts, and the chart version it shows is 17.9.0. Authentication needs its own design review, which the Weaviate authentication documentation covers. If enterprise features are needed, confirm which ones require a license key, because code in the wl directory falls under the Weaviate License.
Both projects share three common overruns: embedding model changes, dimension limits and restore testing, and access control that gets designed late. A model swap changes vector width, so plan a full re-embed and a dimension check before cutover. Access control is the overrun most often underestimated. Row-level filtering in Postgres and collection or API-key permissions in Weaviate must match the source system's permissions, and that match needs a written test. Restore testing should prove that a restored database returns the same search results as the source. To keep the schedule, the client must supply three things: a named data owner who signs off on the corpus and access rules, a Postgres or Kubernetes platform owner who grants access and approves changes, and written sign-off on the scope before work starts.
Moving vectors from pgvector to Weaviate, or back, step by step
This sequence moves a team from pgvector to Weaviate, or back, through a tested target and a controlled cutover, with search quality and access rules checked at each stage. Every step closes with a written output, so the cutover decision rests on recorded evidence.
Inventory the current vector setup
Record the vector column or columns, the embedding model and its version, the vector dimension, the distance metric each query uses, and every metadata filter that search depends on. Take these facts from the schema, the ingestion code and the query code, since the query code is where distance operators and filters are defined. pgvector indexes the vector type up to 2,000 dimensions and the halfvec type up to 4,000, so flag any embedding model whose output is larger than the limit for the type you use. The step is done when one person from the application team and one from the data team have signed the same inventory sheet.
Decide what transfers and what gets rebuilt
Split the work into two lists and get both approved. Source records and their embedding vectors transfer when the same embedding model stays in use, which avoids recomputing the whole corpus. Indexes, ingestion code, query code, access rules and backup jobs are rebuilt on the target, because index types, query syntax and access controls are specific to each engine and must be configured there. If the model changes, the vectors must be recomputed and the transfer list shrinks to the source records. The same two lists apply in reverse when moving from Weaviate back to pgvector. The output is a signed list with a named owner for each rebuilt item.
Stand up the target in non-production
The platform or infrastructure team deploys Weaviate in a non-production environment, using the Docker installation with its docker-compose file or the Kubernetes installation with the Helm chart, depending on where the team runs workloads. Weaviate Cloud is a third option if your data policy allows a managed service. Plan persistent storage for the data directory under /var/lib/weaviate, and expose REST on port 8080 and gRPC on port 50051 only to the services that need them. Enable authentication before any data is loaded, and confirm with Weaviate which features in your plan require an enterprise license key. The output is a running non-production instance with authentication enabled, a tested restore from backup, and a configuration record that matches your security baseline.
Re-ingest or copy the vectors
The data team loads the transferred records into a Weaviate collection that mirrors the source schema, mapping each Postgres column to a Weaviate property and keeping the same vector dimension and distance metric. When the model is unchanged, export the vectors and reload them. When the model changed, re-embed the corpus with the new model in a batch job. Confirm the export, load and any migration tooling with each vendor before the plan is fixed, since supported paths can change between releases. The output is a reconciliation showing matching record counts, matching IDs, and a sample of vectors that match the source within the expected numeric tolerance.
Check search results on a fixed test set
Build a fixed set of queries with known relevant records, including queries that exercise each metadata filter, and freeze the set before any testing starts. Run every query against pgvector and Weaviate, then compare the top results, filter behavior and latency. pgvector's exact search gives a useful baseline for judging approximate index results, and differences in ranking are expected where indexes are approximate or distance scores are computed differently. Set the acceptance threshold in writing before the run. The output is a test report listing each query, both result sets, the overlap at the agreed cutoff, and every failed case with an owner for the fix.
Run in parallel, cut over and retire the old index
Write new data to both stores and compare read results for an agreed window, then move reads to Weaviate once the acceptance threshold holds. The length of the window is set in the plan with the team, and should be confirmed with each vendor's guidance for dual operation. Keep the pgvector index and a route for reads back until the rollback period closes. Then drop the old index, remove the old ingestion path, and update backup jobs so retired data is no longer copied. The output is a signed cutover record and a retirement checklist that notes the date of the last successful rollback test.
How much effort does a pgvector or Weaviate rollout take?
How long does a self-hosted vector database rollout take?
No duration applies to every team, so the timeline depends on scope, data volume and access control. A pilot with one collection and a few users is a different job from a deployment that serves several source systems and must enforce per-user permissions on every search result. Access control adds design and review work for your identity and security teams, because retrieval must respect the permissions held in the source data. Other drivers include high availability requirements, the number of environments you run, and how much existing Postgres or Kubernetes work you can reuse. DeployOpen agrees scope, deliverables and timelines in writing before work starts. Ask for a written timeline that lists each assumption about data volume and access rules, and confirm which of those inputs your own team must supply.
Can our team run pgvector or Weaviate without outside help?
Yes, if your team already runs PostgreSQL or Kubernetes, because most of the operating work will be familiar. The deciding factor is the skills gap, not the software. pgvector adds an extension to a Postgres server you already operate, so the new skills are vector index choices, such as HNSW or IVFFlat, and query tuning. Weaviate adds a separate service with its own storage volumes, configuration and upgrade path, and its Kubernetes installation guide sets its own requirements for cluster version, Helm and persistent volumes. If nobody has run either product, list the gaps across the database, container platform, identity integration and security review, then decide which ones to hire, train for or outsource. DeployOpen implements, documents and supports self-hosted platforms inside your infrastructure, so outside help can cover specific gaps under a fixed scope while your team keeps ownership of the running system.
Can pgvector run on our existing Postgres server?
Often yes, but it depends on three things: version support, extension install rights and spare capacity. pgvector supports Postgres 13 and later, so check your server version against that minimum before planning. Next, someone must be permitted to install the extension on the server. Many managed Postgres services restrict which extensions you can add, so confirm this with your provider or database team. Spare capacity matters because vector indexes consume memory and disk and can compete with transactional queries on the same instance. Build the index on a copy of your data and measure build time and query latency before you share a production server. If your current provider is unclear about pgvector support, check whether it appears among the hosted Postgres providers listed in the project documentation.
Does Weaviate need Kubernetes, or can it run on Docker?
No. Weaviate can run on Docker, on Kubernetes with a Helm chart, or as Weaviate Cloud. Docker suits a single-node pilot or a small internal service: you mount a volume for data under /var/lib/weaviate, serve REST on port 8080 and gRPC on port 50051, and use the docker-compose file the project provides. Kubernetes becomes the better fit when your platform team already standardizes on it and wants its scheduling, restart and storage controls. The Kubernetes installation guide sets its own requirements: Kubernetes 1.23 or later, Helm v3 or later, and PersistentVolumes with ReadWriteOnce mounts, with chart version 17.9.0 shown in the guide. Confirm those requirements against your cluster version and storage class. Also plan backups for the data volume, because the deployment method changes that work.
Does Weaviate require a license key, and what does it cost?
Weaviate's core is BSD-3-Clause, but some code sits under the separate Weaviate License, and enterprise features need a license key. The official binaries include both editions. A team that uses only core features may not need a key, while a team that depends on enterprise features will. List the features you need, then check which of them require a key. Ask Weaviate for written terms covering the key, its fees, whether those fees recur, renewal conditions and the support included. This page carries no figure for those fees, so plan from the written terms. DeployOpen does not publish a price list, and a rollout quote follows from the written scope, so request the Weaviate terms and the rollout quote separately before you compare total cost. Also check whether Weaviate Cloud changes the license question for your team.
How hard is it to switch from pgvector to Weaviate later?
It depends mainly on whether your embeddings can be reused. If you keep the same embedding model and the same vector dimensions, you can export the vectors from Postgres and load them into Weaviate without regenerating them, which avoids re-embedding the whole corpus. If you change the embedding model, you must re-embed everything, and that work grows with corpus size and with the cost of the model. Plan for the parts that will not move as cleanly: index settings, distance metric choices, metadata filters, and application queries that join vector results to other Postgres tables. Check that each target supports your vector dimensions, since pgvector indexes vector columns up to 2,000 dimensions. Keeping source text and metadata in your system of record turns a future move into a reload.
How DeployOpen helps choose, implement or migrate between pgvector and Weaviate
DeployOpen approaches pgvector vs Weaviate as a self-hosted implementation inside your own cloud accounts, data centers or air-gapped network, whether you are still choosing, setting up or moving data between them. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, so the boundaries are clear to your security and compliance teams.
How we scope
- A written scope that sets out which use cases, data sets and environments the pgvector or Weaviate work covers.
- Target environment confirmed first, such as an existing Postgres server or a Docker or Kubernetes Weaviate deployment.
- Ongoing support, upgrades and continuous testing are available as a retainer after the fixed-scope work ends.
How we build
- Install pgvector on your Postgres server, pinned to a tagged release, such as v0.8.7, that your team has reviewed.
- Deploy Weaviate with Docker or a Kubernetes Helm chart, configuring authentication and the data volume.
- Build the migration or integration path, with a test run on copied data before any production cutover.
How we hand over
- Documentation of the chosen configuration, including index settings, distance functions and backup scope.
- Authentication and access settings for Weaviate, and database role design for pgvector, reviewed with your security team.
- Runbook covering upgrades, backups and restore tests, plus evidence your assessors can review.
How we support
- Security testing of the running setup, with findings, suggested fixes and a retest after changes are made.
- Upgrade and patch work for pgvector and Weaviate releases, scoped in a retainer agreed in writing.
- Compliance readiness: controls and evidence prepared for your independent auditors, who issue any formal attestation.

