pgvector self hosted

pgvector runs self hosted on PostgreSQL 13 or later, installed from source or a documented package route, with no paid edition from the project. SSO, audit trails and tenant isolation come from PostgreSQL and outside components, so plan them before approval.

On this page

Can pgvector self hosted run in infrastructure you control?

pgvector is supported self hosted with no paid edition, and it installs on PostgreSQL 13 and later, either from source or through a documented package route. The project's pgvector README lists building from source with make, plus Docker, Homebrew, PGXN, APT, Yum, FreeBSD pkg, Alpine APK, conda-forge and Postgres.app. The extension is released under the PostgreSQL License, as its LICENSE file states, and that notice names the PostgreSQL Global Development Group and The Regents of the University of California as copyright holders. Pick the route your platform team can patch on a fixed schedule, and confirm that the package matches the PostgreSQL major version you run, because the conda-forge package is community-maintained and separate from the core project.

Running it yourself means the operating controls are yours. Your team configures the PostgreSQL server itself: the access model in pg_hba.conf, which roles can log in and from where, TLS through the ssl setting with certificates you issue, and logging through the server's logging settings. You also own backups, restore tests, and patching of both PostgreSQL and the extension. Run CREATE EXTENSION vector in every database that uses vector data, since the extension must be created separately in each one. Before go-live, record who owns each control, how often patches apply, and where backups are restored and tested, because a checklist reviewer will ask for that evidence and pgvector does not produce it for you.

pgvector does not bring its own login, single sign-on or audit trail, so those controls come from PostgreSQL and from components around it. Single sign-on usually sits in front of the database, through an external directory reached by a PostgreSQL authentication method or through the platform that hosts the server, so confirm with your identity team which path your reviewers accept. Audit trails come from PostgreSQL logging and, where you need more detail, from an audit extension such as pgaudit, which you would evaluate and maintain yourself. Tenant isolation for vector rows comes from PostgreSQL roles and row-level security, which apply to vector tables the same way as to any table. For commercial support on the database itself, the PostgreSQL professional support page lists independent companies by region.

pgvector self hosted support by install route, platform and version

This table shows where pgvector can be installed or consumed as of December 2026, with a support status for each install route, managed service and support option. Read the status column first, then check the version note against the route or service you plan to use, because each one ships its own version. The main takeaway is that the project documents source install and several packages, managed services state their own versions, and pgvector itself has no paid edition, SSO or audit logging.

Install route, platform or serviceSupport statusVersion or note as of December 2026
Source install with make, PostgreSQL 13 and laterBuilt inLatest release 0.8.7, dated 2026-10-01. Version 0.9.0 is listed as unreleased, with no date.
Docker, Homebrew, PGXN, APT, Yum, FreeBSD pkg, Alpine APK, Postgres.appNeeds an outside componentDocumented in the README. Each package comes from its own repository or distribution, so confirm the version it ships.
conda-forgeNeeds an outside componentCommunity-maintained and separate from the core pgvector project. Confirm the version it ships.
Amazon RDS for PostgreSQLBuilt inPer AWS's extension versions page: 0.8.6 on PostgreSQL 18.7 and 17.12; 0.8.2 on PostgreSQL 19 preview builds.
Google Cloud SQL for PostgreSQLBuilt inPer Google's extensions page: 0.8.5 on PostgreSQL 13 and later.
Azure Database for PostgreSQL and SupabaseBuilt inAzure requires allowlisting the name vector first. Supabase enables it from its Extensions page. Confirm each service's version.
Paid edition of pgvectorNot availableNo paid edition appears in the README or the LICENSE file.
Commercial supportPaid onlyOffered by outside companies listed on PostgreSQL's professional support page. The pgvector project does not offer it.
SSO, audit logging and air-gap bundleNot availableNot inside pgvector. Handle them in PostgreSQL, your platform or an outside component.

How pgvector self hosted fits into your PostgreSQL server

The pgvector extension is a library you install on a PostgreSQL server you operate. It adds a vector data type and HNSW and IVFFlat index methods to that server. Installing the binaries is only the first step. You must run CREATE EXTENSION vector; in each database where vector data lives, so setup is database by database. For example, a server with five databases needs five separate creations and five separate upgrade checks (illustrative). The name to use is vector, and allowlists and scripts must match it. The control file sets default_version to 0.8.7 and relocatable to true, and it does not mark the extension as trusted. Without the trusted flag, a non-superuser generally cannot create it, so who may run that statement is a decision to make in advance. Record that decision and the role that holds it, then work through the pgvector rbac section for the access model.

Roles, grants, row-level security and partitioning come from PostgreSQL and apply to a vector table the same way they apply to any other table. A tenant filter written as a row-level security policy on an embedding table limits reads of that table in the same way it would for a text column. Decisions about access are enforced in four places: the host firewall and network path to the server, PostgreSQL authentication in pg_hba.conf, database privileges granted to roles, and the application that builds the queries. Each layer can fail independently, so test each one. Ask whoever runs the server to show the pg_hba.conf rules and the grants on a vector table, and ask the application team to show the query that filters rows by tenant.

Index choice and dimensions set the limits you design around. pgvector provides HNSW and IVFFlat indexes. The pgvector README lists 2,000 dimensions as the maximum for an indexed vector column, 16,000 dimensions for a stored vector, and 4,000 dimensions for an indexed halfvec. An embedding model that outputs more than 2,000 dimensions can still be stored as a vector, but that column cannot carry an index of that type, so check your model's output size before you choose the column type. Confirm these limits against the README for the version you install, since the limits can change between releases.

Decisions to make before pgvector self hosted goes live

Each card covers a choice you make once and then carry into every environment. Together they decide who can change the extension, who can read vector data, and what evidence your security team gets when it reviews the setup.

Where the server runs

Choose between virtual machines, Kubernetes or Docker, and a managed PostgreSQL service that ships the extension. Self-managed hosts give you control over the binary, the extension files and the patch window, and you carry that work. A managed service removes the build step but fixes the extension list and version for you. Decide who owns the extension build before you pick the platform, and confirm the pgvector version offered in your region and PostgreSQL major version.

Install route and version policy

The README documents source builds with make, plus packages through Docker, PGXN, APT, Yum, Homebrew and other routes, and source builds support Postgres 13 and later. Each route ships its own build, so pin one package version in your image tag or package manifest and record it in change control. Managed services can trail the upstream release, and the CHANGELOG's newest entry is the reference point. Decide the minimum version your workload needs and who approves an upgrade when a provider lists a newer one.

pgvector README

Extension creator and table privileges

The control file does not mark vector as trusted, so on self-managed PostgreSQL a role without superuser rights cannot create it. Decide which admin role runs CREATE EXTENSION vector, and remember the extension must be created separately in every database that uses it. Table grants on vector columns follow ordinary PostgreSQL privileges. Keep the installer role apart from application roles, and check the result with a query against pg_extension in each database.

Azure pgvector article

Database authentication and identity

PostgreSQL authenticates connections through its own roles and host-based rules, and it does not reach your identity provider on its own. Decide whether people connect through individual database roles or short-lived credentials from a secrets tool, and how each maps to groups in your directory. Confirm which single sign-on or directory integration your chosen build or managed service supports before you promise database sign-in through your identity provider.

Log destination and retention

Decide where PostgreSQL logs go, which events are recorded, such as connections, DDL including CREATE EXTENSION, and privilege changes, and how long they are kept. Send logs outside the database host so anyone with database access cannot quietly edit the record. Retention follows your policy and compliance obligations, and the extension does not set it. Ask a managed service provider which logs it exposes and how long it keeps them, since those settings can differ from a self-run server.

Network boundary and TLS

Limit which subnets, services and hosts can reach the PostgreSQL port, and place the database only where the application tier can reach it. Require TLS for every client connection and define the server certificate your clients verify. Document which certificate authority issues it, how it rotates, and which ports are open. Vector queries can return embeddings and source text, so the connection path deserves the same review as any database holding business content.

Where the extension, PostgreSQL server and clients sit in a self-hosted setup

The diagram starts with application clients and the company identity provider, both outside your infrastructure. Client queries cross the network boundary over TLS into the PostgreSQL server. Inside the server, the vector extension (created with CREATE EXTENSION vector in each database that uses it) adds vector storage and search, while PostgreSQL roles and row-level security decide which rows each caller can read or write. You map identity provider groups to database roles, so access follows your own directory. Logs go to a sink you supply, and backups go to a store you supply. Check that the trust boundary covers every path that carries vector data, including backups and logs.

Shows which parts are pgvector, PostgreSQL or outside components you supply.

How pgvector self hosted differs for managed, air-gapped and regulated setups

On a virtual machine or bare metal host, your team owns every layer: the operating system, the PostgreSQL packages, the pgvector build and the file permissions on the data directory. The project documents a source build with make for PostgreSQL 13 and later, and the README lists distribution packages through APT, Yum and other routes. After installation, create the extension with CREATE EXTENSION vector; in each database that stores vectors, because the extension is named vector, not pgvector.

  • Package or source install: Choose between a distribution package and a source build, and record which PostgreSQL major version each one targets.
  • Patching cadence: Your team applies operating system, PostgreSQL and extension updates, and tests each pgvector release before it reaches production.
  • Backups and recovery: Point-in-time recovery, replicas and restore tests are your responsibility, since no provider runs them for you.
  • Host hardening: Network exposure, TLS settings, operating system access and the PostgreSQL configuration file are set by your team.

Confirm the PostgreSQL major version your application requires, and whether your distribution packages the pgvector version you intend to run.

Where pgvector self hosted falls short of enterprise controls

pgvector adds vector storage and search to PostgreSQL and inherits its security model. It leaves identity, audit, support and release management to the operator. Each card below names one gap, the usual way teams cover it, and what to confirm in your own environment.

Identity provider integration

pgvector does not integrate with an identity provider, so sign-in to the database is decided by PostgreSQL authentication and the access layer in front of it. Confirm which PostgreSQL authentication method your build supports for your directory, and whether a bastion or access proxy enforces single sign-on and multi-factor checks before a session reaches the server. Map each database role to a directory group, then test that a removed user loses access at the next login.

Audit trail beyond logs

pgvector keeps no audit trail of its own, so who ran a similarity query or changed a vector table is visible only if PostgreSQL logging records it. Set log_connections, log_disconnections and statement logging in postgresql.conf to match your retention rules. If you need more detail, evaluate an outside audit extension, and confirm it supports your exact PostgreSQL major version before you install it. Ship logs to storage the database host cannot edit.

No vendor support from the project

The pgvector project does not provide support for your deployment. Commercial help comes from PostgreSQL professional services companies, which the PostgreSQL project lists by region. Ask each candidate whether they have run pgvector in production, which PostgreSQL majors they cover, what response times they commit to in writing, and who patches the extension when a security fix or upgrade lands.

PostgreSQL professional support

Managed versions behind the latest

Managed PostgreSQL services ship pgvector on their own schedule, so the version you receive can trail the project's latest release. Amazon RDS lists 0.8.6 for PostgreSQL 18.7 and 17.12, and Google Cloud SQL lists 0.8.5 for PostgreSQL 13 and later, both as of December 2026. Compare each service's stated version with the CHANGELOG, and ask the provider when the newest release reaches your region and major version.

pgvector changelog

Fleet-wide version pinning and patching

Self-hosted fleets drift when servers install pgvector from different routes, such as APT, Yum, Docker or a source build. Pin one pgvector version per PostgreSQL major in configuration management, and roll changes through a staging tier before production. Use the default_version line in vector.control only as a cross-check, since it reflects the source you built. Do not schedule a rollout against the version the CHANGELOG still lists as unreleased.

Unreleased, do not plan
0.9.0
pgvector README

Air-gapped build and package mirroring

Air-gapped networks cannot reach the package sources that APT, Yum, PGXN or Docker typically use. Plan an internal mirror for extension packages and for any build dependencies of a source install, and confirm that it carries the exact pgvector version you approved. Verify the build offline in a test enclave before production, and store signed artifacts with recorded checksums so each upgrade can be reproduced later.

Order of work for a pgvector self hosted rollout in production

The sequence takes pgvector from an agreed requirement to an approved production database. Each step ends with a check that the platform owner can repeat, so the approval rests on recorded evidence. It is written for teams that will run the database after launch, and it assumes the install route, PostgreSQL major version and managed or self-run choice are still open.

  1. Confirm the requirement with the platform owner

    Start with the platform owner, who signs off the workload: the vector dimensions you plan to store, the index type you expect to use (HNSW or IVFFlat), the PostgreSQL major version already in production, and whether the database will run on servers you operate or on a managed service. Ask the owner to confirm the edition question too, meaning which PostgreSQL distribution and support contract the database sits under. Done when a written requirement note lists these answers and the owner has approved it.

  2. Choose the install route and pin the version

    The platform engineers pick the host and install route: a managed PostgreSQL service that ships pgvector, or a server you operate with a source build, a distribution package or a container image. Check the route against the PostgreSQL major version in use, because the project's source install supports PostgreSQL 13 and later. Pin the extension to an exact release, such as 0.8.7, which is the latest release in the project changelog as of December 2026. Confirm the version your route actually delivers, since package repositories can lag. Done when the pinned version, the PostgreSQL major and the install method are written into the change record.

  3. Set database roles and the extension owner

    The DBA team defines who installs the extension and who uses it. Vector data lives in ordinary PostgreSQL tables, so the roles created here later control reads and writes in the same way as for any table. Keep CREATE EXTENSION with an administrative role, because the pgvector control file does not mark the extension as trusted, which means a non-superuser generally cannot create it under the default setup. Confirm this on your PostgreSQL version. Create separate roles for schema changes and application access. Done when a role matrix lists who can install the extension, who can write vector rows and who can read them, and a test login confirms the matrix.

  4. Configure authentication, TLS and logging

    The security and platform teams set how clients connect and what the server records. Restrict host entries in pg_hba.conf to the networks and authentication methods your policy allows, enable TLS with ssl = on and the certificate files your PKI issues, and turn on logging for connections, disconnections and the statements your auditors need. Set log retention in line with your policy and confirm where logs are stored. Verify by connecting from an allowed host over TLS, from a denied host, and without TLS, then checking that each attempt appears in the log with the expected result. Done when the three test connections match the policy and the log captures them.

  5. Create the extension in each database

    The database owner runs CREATE EXTENSION vector; in every database that stores vectors, because the extension is created separately in each one. The extension name is vector. If you plan to add it to template databases so new databases inherit it, confirm that decision with the owner first, since it changes what every future database contains. Run the statement with the role chosen in the role step. Done when the extensions listing in each database shows vector, and the installed version matches the pinned release.

  6. Load a test dataset and confirm index behavior

    Load a sample sized like production into a staging copy and test the limits the project documents. Create a vector column at a dimension you plan to index, build an HNSW index and an IVFFlat index on separate test tables, then run a nearest-neighbor query and use EXPLAIN to confirm the planner uses the index. Test the documented limits: indexed vector columns up to 2,000 dimensions, stored vectors up to 16,000 dimensions, and halfvec indexes up to 4,000 dimensions. Check the README for the IVFFlat build order before loading data. Done when the test record shows the index type used, the dimensions that passed or failed, and the query plans.

  7. Test backup and restore with the extension

    The backup owner takes a backup of a test database that contains vector data, then restores it into a new database on a server with the same pgvector version installed. Confirm the dump includes the extension definition, so the restore recreates it before the vector columns load, and confirm the restore runs without errors. Run a nearest-neighbor query on the restored copy and compare row counts and index definitions with the source. Done when the restored database returns the same results and the restore runbook names the extension version it expects.

  8. Record the approval in the change record

    The platform owner, the security lead and the DBA sign the rollout record before the database receives production data. The record lists the requirement note, the pinned pgvector version and PostgreSQL major, the role matrix, the TLS and logging settings, the extension check for each database, the index test results and the restore test. Attach the query output from each step so a reviewer can rerun the checks. Done when the record is signed and stored where the compliance team can find it, and each open item has a named owner.

Evidence a security reviewer asks for in a pgvector self hosted approval

This table lists the evidence a security reviewer usually requests before approving a self-hosted pgvector database, and where each item comes from on the server or in your records, collected for every database where the extension is created. Read each row as a question the reviewer will ask and the artifact that answers it. DeployOpen prepares this evidence for your review, while independent auditors and certification bodies issue any report.

Evidence itemWhere it comes fromWhat the reviewer checks
Extension name and versionQuery pg_extension in each database. The name is vector, and the available version is in the vector.control file.Name and version match the build approved in the change record, in every database where it is created.
Install provenanceInstall route, repository or tag, package name and build log. Note whether a community-maintained package, such as conda-forge, was used.A named source for the binary, traceable to a tag or release, with any community package called out.
PostgreSQL version and supportOutput of SELECT version() plus the minor release notes for the running build.The major version is still within its support window, and the source install supports PostgreSQL 13 and later.
Privilege modelRole list, grants on vector tables, row-level security policies, and roles holding BYPASSRLS or superuser.Least-privilege roles, a named owner for extension creation, and a list of who can bypass row security.
Authentication and TLSpg_hba.conf entries, password or certificate methods, and the ssl settings in postgresql.conf.Remote access uses approved authentication methods and encrypted connections, with no open host entries.
Log output and retentionConnection, DDL and role-change logging settings, the log destination, and the retention period set for those logs.Logs record extension creation, role changes and access, and retention matches your written policy.
Backup and restore test recordsDated backup jobs and restore test logs, including a restored database that holds vector columns and HNSW or IVFFlat indexes.A restore was tested and checked, not only a backup completed, with the index rebuild time recorded.
Patch and upgrade recordChange tickets for PostgreSQL minor updates and pgvector upgrades, with the vector.control version before and after.Each change was tested before production, with a rollback note and the version recorded before and after.
Data locationHost, region, storage volume and backup location for each database that holds embeddings or source text.Data stays in approved infrastructure, and any managed service region is recorded in the approval record.

What buyers ask before approving pgvector self hosted

What does it cost to self host pgvector beyond the license?

The extension is released under the PostgreSQL License, which the license page covers, so the spend comes from what runs it. Your organization pays for three things: the PostgreSQL host (virtual machines, Kubernetes capacity or a managed PostgreSQL instance), storage for the tables and vector indexes, and people who install, patch, back up and monitor the database. Host and storage recur every month or year, while the initial build is a one-time cost. Managed services bill for instances and storage on their own schedules, so check each provider's pricing documents. Size and rates depend on your provider and data volume, so ask any quote to list host, storage, backup retention and labor as separate line items, with one-time and recurring costs marked.

How long does a self-hosted pgvector setup take to deliver?

No duration is fixed here; the timeline comes from the written scope agreed before work starts. The main drivers are the host type, the number of databases and the review process. A single virtual machine running one PostgreSQL cluster is the simplest case. Kubernetes, a managed service that needs an extension allowlist change, or several clusters add design and approval steps. Each database needs its own CREATE EXTENSION vector statement, so the database count multiplies the verification work. Reviews by your database, security and compliance teams often set the pace, especially where change windows are scheduled. Ask for a plan that lists the host, each database, the restore tests and each review gate with its owner, so the schedule follows from those items.

Can our own team install and run pgvector without a partner?

Yes, a team with solid PostgreSQL operations skills can do it alone. Installation is a short step; the surrounding work is where skill matters. The team should be ready to cover these needs:

  • PostgreSQL administration experience, including roles, extensions, backups and point-in-time recovery.
  • A supported install route, such as a source build, APT or Yum packages, or the managed service's extension settings.
  • A privilege plan: the control file does not mark the extension as trusted, so on a self-managed server creating it normally requires a superuser role. Decide who holds that role and when it is used.
  • A test plan for HNSW and IVFFlat indexes, including the README limit of 2,000 dimensions for indexed vector columns.
What does DeployOpen do under a fixed-scope written agreement for pgvector?

DeployOpen plans, implements, hardens, backs up, documents and supports the self-hosted PostgreSQL and pgvector setup inside your own infrastructure, such as your cloud accounts, data centers or air-gapped networks. Most engagements are fixed-scope, so the scope, deliverables and timelines are agreed in writing before work starts. The written scope should name the host, the PostgreSQL version, the databases that receive the extension, the backup and restore tests, the documentation you receive and what happens after handover. Ongoing support, upgrades and continuous testing are available as retainers. DeployOpen does not publish a price list, so a quote follows from the written scope. Ask for acceptance tests in writing before you sign.

Is pgvector or DeployOpen certified or audited for security?

No. DeployOpen does not issue audit reports, attestations or certifications, and this page does not claim that pgvector holds any. Independent auditors and certification bodies issue those reports and certificates. DeployOpen prepares systems, controls and evidence for compliance assessments, such as configuration records, access settings and backup test results, so your auditor has material to review. The project's public license and source files can be read, but they are not a security assessment of your deployment. Ask your compliance lead which assessment your buyers expect, and confirm with the auditor which evidence they will accept before the build starts.

Which pgvector version should we run in production today?

Run the latest release that your PostgreSQL major version supports. The pgvector CHANGELOG lists 0.8.7 as the latest release, dated 2026-10-01, and the README says source installs support PostgreSQL 13 and later. Managed services may lag behind. As of December 2026, Amazon RDS for PostgreSQL lists 0.8.6 for PostgreSQL 18.7 and 17.12, and Google Cloud SQL lists 0.8.5 for PostgreSQL 13 and later. The CHANGELOG also lists 0.9.0 without a release date, so do not plan around it. Confirm the exact version your provider offers for your PostgreSQL minor version, and check the upgrade path before you choose a target.

How DeployOpen runs pgvector self hosted in your infrastructure

DeployOpen installs and configures pgvector on PostgreSQL servers inside your own cloud accounts, data centers or air-gapped networks. Each engagement starts with a written scope that names the PostgreSQL version, install route, vector dimensions and index types your data needs. Ongoing support, upgrades and continuous testing are available as retainers.

How we scope

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • The scope names the PostgreSQL major version, the pgvector release and the install route for your hosts.
  • It also records vector dimensions, HNSW or IVFFlat index choices and the README's dimension limits.

How we build

  • Install the extension on a supported PostgreSQL release, checking the version floor the pgvector README documents.
  • Create the extension with CREATE EXTENSION vector in every database that stores vector data, one database at a time.
  • Apply PostgreSQL roles, grants and row-level security to vector tables the same way as to any other table.

How we hand over

  • Deliverables include the installed configuration, install steps, index settings and role grants, documented for your team.
  • Test results from install, index and permission checks are part of the handover when your scope includes them.
  • Your team receives a runbook covering patching, upgrade steps and the pgvector release you have pinned.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
  • Track the pgvector CHANGELOG, where 0.9.0 is listed as unreleased, and plan upgrades only after a published release.
  • Retest dimension, index and permission settings after each upgrade to check nothing changed unexpectedly.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.