Is pgvector multi tenant enough for our tenant isolation requirement?
pgvector has no multi-tenant feature of its own. Tenant isolation comes from PostgreSQL features that the extension inherits: list partitioning, separate tables per tenant and row-level security, as the pgvector README and the PostgreSQL documentation describe. pgvector is one open-source extension under the PostgreSQL License, and the sources this page relies on name no paid edition of it. Approving the extension approves a database pattern, and the tenant boundary exists only once your team builds it. The requirement is met only through design choices your team makes, builds and tests: how tenants map to tables or partitions, which role each application connection uses, and how a shared vector index behaves under other tenants' load.
List partitioning by tenant key is the approach the pgvector README advises, alongside separate tables. PostgreSQL declarative partitioning supports range, list and hash methods, and its planner skips partitions that cannot match a query through partition pruning, so a query that carries the tenant key touches only that tenant's partition. Confirm this with EXPLAIN on every query shape your application sends, because a query without the key may scan all partitions. The PostgreSQL partitioning documentation says the planner handles a few thousand partitions well when queries prune all but a few, so count your tenants before choosing partitions over separate tables. Row-level security adds a second check: a policy such as USING (tenant_id = ...) restricts each role to its own rows, but only if application roles cannot bypass it, which your access review must confirm.
The README notes that with a shared approximate index, one tenant's vectors can affect recall and speed for others, so a shared HNSW or IVFFlat index needs its own test. Build a test set per tenant, compare approximate results against exact search on that tenant's rows, and rerun the comparison after a large tenant is loaded or deleted. Include the filtered queries your product actually runs. Confirm how your pgvector version handles a tenant filter combined with an approximate index, since a filter applied after an index scan can return fewer rows than the query requests. Plan for capacity as well: the README gives a 32 TB default limit for a non-partitioned table in Postgres, which matters if one shared table grows with every new tenant.
Which multi-tenant options are built in, paid or outside pgvector
This table sorts each multi-tenant option for pgvector by where it comes from and what status it has. Read the first three rows as isolation patterns that the pgvector README or PostgreSQL documents, the fourth as a shared index trade-off, and the last three as items you must source or confirm outside the core database. The main takeaway is that tenant separation is largely a PostgreSQL design choice, while sign-in, audit logging and managed-service behavior need separate checks.
| Capability | Where it comes from | Status |
|---|---|---|
| List partitioning by tenant key | PostgreSQL declarative partitioning, advised in the pgvector README | Open source and built into PostgreSQL; partition pruning limits which partitions a query reads |
| Separate table per tenant | Plain PostgreSQL tables, advised in the pgvector README | Built into PostgreSQL; each table carries its own grants and indexes |
| Row-level security by role | PostgreSQL row security policies | Built into PostgreSQL and applied to vector tables like any table; confirm which roles bypass it |
| Shared approximate index across tenants | pgvector HNSW and IVFFlat indexes | Available; the README warns one tenant's vectors can affect recall and speed for others |
| Tenant-aware sign-in and admin mapping | Outside component, such as your identity provider or application | Not part of pgvector; design and test it separately |
| Per-tenant audit logging | Outside component: PostgreSQL logging settings and your log tooling | Not part of pgvector; confirm the PostgreSQL logging settings and tooling you will use |
| Managed services | The provider's own documentation, such as Azure's pgvector article | Confirm partitioning, row-level security and the pgvector version the provider ships |
Five decisions that set the pgvector multi tenant boundary
Five choices decide whether one PostgreSQL database can hold several tenants' vectors without one tenant's data or load reaching another. They interact: the isolation layer sets how many indexes you build, the index strategy sets how other tenants affect recall, and the identity source sets what row policies can check. Settle them before you write the schema.
Choose the tenant boundary
Use list partitioning per tenant, give each tenant its own table, or keep one table and restrict rows with row-level security. The pgvector README advises list partitioning or separate tables for isolation. Separate partitions and tables each carry their own index, so index builds and maintenance multiply with tenant count. One table with row policies has one index and one set of admin objects, but every query depends on the policy being correct. Check which option your backup, restore and per-tenant deletion process can handle.
pgvector READMEChoose the index strategy
A shared approximate index covers every tenant in the table, while indexes per partition or per table keep each tenant's graph separate. The pgvector README notes that with a shared approximate index, one tenant's vectors can affect recall and speed for others. Measure recall using each tenant's own queries and data distribution, since a small tenant may see different results than a large one. Check the query plan for small tenants too, because the planner may skip the index when a filter leaves few rows.
pgvector READMEPlan for tenant count
The README says partitioned tables can have thousands of partitions, and PostgreSQL says its planner handles hierarchies of a few thousand partitions well when queries prune all but a few. Partition pruning works only when the tenant key appears in the WHERE clause, so a query that omits it scans every partition. Ask your application team which queries run without a tenant filter, such as admin reports and background jobs. Also decide who creates a partition for a new tenant and whether that step can run during a live deployment.
- Default table size limit
- 32 TB
Define the role model
Separate the roles that own tenant tables, run migrations, query vectors and write them. Table owners and superusers can bypass row-level security unless the table forces it, so an application connecting as the owner can read every tenant. Grant application roles only the SELECT, INSERT, UPDATE and DELETE they need. Because vector.control does not mark the extension as trusted, confirm which role can run CREATE EXTENSION vector in your environment. The pgvector RBAC page covers grants and bypass cases in detail.
PostgreSQL row security docsSet where tenant identity lives
Tenant identity can come from a session setting the application sets on each connection, or from a database role per tenant. A policy such as USING (user_name = current_user) trusts whatever the database role reports, so the application must set session values only from a verified identity on every request. Per-tenant roles give the database its own enforcement but multiply with tenant count. If SSO sits in front, map a verified tenant claim in the token to a tenant record and reject tokens without one. Test that a pooled connection cannot carry a previous tenant's setting.
How partition pruning and row security enforce tenant boundaries in PostgreSQL
The partition key is the first enforcement point, and it only holds if every query carries it. In a list-partitioned table keyed on tenant_id, each tenant's rows sit in their own partition, and the planner's partition pruning drops partitions that cannot match the WHERE clause. The PostgreSQL partitioning documentation says the planner handles partition hierarchies of up to a few thousand partitions well when queries prune all but a few, and the pgvector README says partitioned tables can have thousands of partitions. Treat that figure as a limit to test against your own tenant count. Run EXPLAIN on representative tenant queries and confirm that only the tenant's partition appears in the plan. A query that omits the tenant filter scans every partition, so the application or a view must always supply that filter.
Row-level security is the second enforcement point, and it limits what a role can read even when a query reaches the wrong table. Enable it with ENABLE ROW LEVEL SECURITY and add a policy such as USING (user_name = current_user), so each database role sees only its own rows. The PostgreSQL row security documentation explains how policies apply to each command. Confirm which roles bypass policies, including table owners, and confirm that the application connects as a role the policy governs. Test with two roles and a known set of rows before any tenant data loads, and rerun the test after every schema change.
The shared approximate index is where isolation is weakest. Pruning and policies narrow which rows a query may return, but they do not stop one tenant's vectors from shaping the index that every tenant searches. The pgvector README notes that with a shared approximate index, one tenant's vectors can affect recall and speed for others. An approximate search can also scan index entries that a policy later removes, so a filtered query may return fewer rows than requested. Confirm which indexes each partition carries in the PostgreSQL version you run, because a per-partition index and a parent index behave differently under pruning. Then measure recall and latency per tenant on realistic sample data and decide whether a shared index fits your risk profile or whether large tenants need their own indexes.
Gaps a pgvector multi tenant design must cover outside the extension
pgvector stores vectors in ordinary PostgreSQL tables, so the extension shapes how a shared index behaves but not who a tenant is, what happens when one leaves, or who reads what. The six gaps below sit with your team, your identity provider or your PostgreSQL operations. Each one needs a named owner and a tested check before the design goes live.
No tenant object in pgvector
pgvector has no concept of a tenant, so the tenant ID is only a column, and onboarding, offboarding and ID management are procedures your team builds. Onboarding creates the table or partition and the role grants. Offboarding removes rows, index entries, grants and any exported copies of the vectors. Decide who may assign a tenant ID and make it permanent once issued, so a reused ID cannot inherit old vectors. Test each procedure on a copy before the first live tenant arrives.
Noisy neighbor on a shared index
The pgvector README notes that with a shared approximate index, one tenant's vectors can affect recall and speed for others. Measure recall and latency per tenant on a representative dataset before launch, and repeat the measurement when a large tenant grows. If one tenant's data skews the index, move that tenant to its own partition or table. Run EXPLAIN on tenant-filtered queries to confirm the planner skips the partitions it does not need.
pgvector READMETenant-level read audit trail
pgvector does not record which tenant read which vectors, so the audit trail has to come from PostgreSQL logging and an outside log pipeline. Decide which statements to log, how the tenant ID appears in each log line, where logs are retained and who may read them. Logging every read on a busy vector table can produce a large volume, so test that volume first. Confirm with your PostgreSQL operator and log platform that the chosen settings capture tenant context, since this design has not been verified in your environment.
Tenant-specific keys and encryption
Per-tenant encryption keys are a separate requirement from tenant isolation, and the pgvector project does not describe how keys are handled. Confirm key scope with the platform owner and the provider. Ask whether the database can hold separate keys per tenant or whether one key covers the whole cluster. Ask a managed service provider the same question about storage encryption and key rotation. Record the answers in the design, because a tenant that requires its own key may push you toward separate databases.
Restoring one tenant alone
A cluster-wide backup restores every tenant at once, so restoring a single tenant depends on how partitions and backups are set up. If a large tenant has its own partition, an export of that partition can be a starting point, but its indexes must be rebuilt and checked. If tenants share a table, a single-tenant restore may mean restoring a copy elsewhere and copying rows back. Test the exact procedure on a restored copy and confirm that the tenant's searches return the same results afterward.
Mapping SSO identity to tenant
PostgreSQL does not know which person signed in, so the mapping from an SSO identity to a tenant lives in the application or the identity provider. Decide which claim or group carries the tenant ID, and have the application reject requests where the claim and the database session disagree. With row-level security, set the tenant from the verified claim at the start of each session. Check how the identity provider handles users who belong to more than one tenant.
Row security docsHow the pgvector multi tenant answer changes by tenant count and data sensitivity
When one team owns one dataset, tenant isolation mostly comes down to who can reach the table. A separate table or schema is usually enough in this situation, and PostgreSQL grants decide who can read and write it. Keep the design simple, but write the access model down so it can be reviewed later.
- Separate table or schema: Place the vector table in its own schema so ownership, grants and backups can be read from one place.
- Grants as the access control: Confirm with a grant listing and role membership report that only the intended application and reporting roles hold SELECT, INSERT, UPDATE and DELETE.
- Extension ownership: Decide which administrative role runs
CREATE EXTENSION vectorand keep that role out of application accounts. - One index for one dataset: With a single dataset, one HNSW or IVFFlat index covers the whole table, so no other tenant's vectors compete for recall or speed.
- Scheduled access review: Export the grant list on a regular schedule so the documented access model matches what is actually in the database.
Before go-live, confirm that application roles cannot reach schemas or tables they do not need, and that the grant export matches the access model you documented.
When the tenant count grows and tenant sizes vary, one layout rarely fits every tenant. The pgvector README advises list partitioning or separate tables for tenant isolation, and a common compromise is to give large tenants their own partitions while small tenants share a table protected by row-level security. Partition count and pruning then decide whether the design stays fast as tenants are added.
- Partition per large tenant: Use list partitioning on the tenant key for tenants whose volume justifies a separate partition, so their data and index maintenance stay separate from smaller tenants.
- Shared table for small tenants: Keep small tenants in a shared partition and restrict each role to its own rows with row security policies, which PostgreSQL documents for exactly this kind of per-role restriction.
- Partition count against the guidance: The README says partitioned tables can have thousands of partitions, and PostgreSQL says its planner handles a few thousand well when queries prune to a few. Treat that as an upper bound for planning and test your own count against it.
- Pruning proof: Run
EXPLAINon a query for one tenant and confirm that only that tenant's partition appears in the plan. - Shared index effects: One tenant's vectors can affect recall and speed for others in a shared approximate index, so test recall for the smallest tenants after the large ones are split out.
Close the design by writing down the tenant key, the rule for placing new tenants and the test that proves pruning works on your own data.
When tenant data falls under a legal or contractual obligation, the design question shifts from query speed to what an assessor can inspect. Separate tables or databases give a boundary that can be drawn, listed and tested. Row-level security can support that boundary, but it should not be the only evidence you offer.
- Separate tables or databases: A dedicated table or database per regulated tenant gives a boundary that appears in the architecture diagram, the grant listing and the backup inventory.
- Evidence the auditor can review: Keep grant exports, role membership lists, the installed extension version from
pg_extensionand change records for each boundary. - Row-level security as a supporting control: Policies can restrict each role to its own rows, but they need their own tests, and roles with bypass privileges can see past them, so list those roles and their holders.
- Per-tenant restore and deletion: Separate databases make it easier to restore one tenant or delete its data on request, so rehearse both before go-live.
- Scope with the assessor: Agree in advance which boundary and evidence the assessor will accept. DeployOpen prepares controls and evidence for assessments but does not issue audit reports or certifications, which independent auditors and certification bodies do.
Confirm the boundary, the evidence list and the bypass roles with your compliance lead and assessor before the build starts and before any regulated data is loaded.
A managed PostgreSQL service decides which extensions, roles and versions you receive, so the design starts with the provider's documentation and allowlist. Partitioning and row-level security are standard PostgreSQL features, but a managed service can limit the privileges you hold. Verify each item in writing before you commit to a layout.
- Partitioning and row security: Confirm that the service runs a PostgreSQL major version with the partitioning and policy features you plan to use, and that your admin role can create partitions and policies.
- pgvector version: Compare the version the service ships with the pgvector CHANGELOG. The latest release listed there is 0.8.7, so an older build may lack fixes you need.
- Allowlist name: Azure's pgvector guide names the extension vector for allowlisting, and
CREATE EXTENSION vectoruses the same name, so an allowlist entry written as pgvector may not match. - Extension privileges: pgvector's control file does not mark the extension as trusted, so confirm which role can create it on the service and whether that role is one your application uses.
- Upgrade and restore behavior: Ask how the provider handles extension version upgrades and point-in-time restore, and whether your partitions and policies come back intact in a restore test.
Ask the provider for the exact extension version, the allowlist name and the privileges your admin role receives before you draft the partition plan.
On a server you operate, or one with no outbound network access, you own the install path, the build inputs and the upgrade cadence. The pgvector README documents source installs for Postgres 13 and later, so the version range is the first check. Everything else, from the build host to the artifact store, is part of your supply chain.
- Version range: Confirm that your server's major version falls within the range the README documents for source installs, which starts at Postgres 13, before you schedule a PostgreSQL upgrade.
- Build inputs: A source install compiles against your PostgreSQL server development files and needs make and a C compiler on the build host. Record the exact version of each input.
- Artifact provenance: Mirror the source archive into your own artifact store, verify it against the tag or checksum you approved, and keep the build log with it.
- Version pinning: The CHANGELOG lists 0.8.7 as the latest release and 0.9.0 as unreleased with no date, so pin the release you tested and treat 0.9.0 as a separate evaluation.
- Consistent installs across servers: Every primary, standby and restore host needs the extension files, so build once and deploy the same artifact to each.
Close by naming the owner of each step: who builds, who approves the artifact, and how the same version reaches every server in the cluster.
Order of work to take a pgvector multi tenant design to production
This sequence takes a shared pgvector schema from design decisions to a production tenant that can be onboarded and offboarded with evidence. Each step produces a written decision, a tested control or a measured result, so the security team reviews recorded facts. Run the work in a non-production PostgreSQL first.
Agree the tenant boundary and index strategy
Before any table is created, the platform owner and the application team agree in writing which tenant boundary applies, such as one table per tenant, list partitions keyed by tenant, or a shared table with row-level security, and which index strategy serves it. The agreement records the expected embedding dimensions, the HNSW or IVFFlat choice, and a named owner who accepts that a shared index can change recall and speed for other tenants. The step is done when the signed design note exists and the security team holds a copy.
Build the layout and check dimensions
In a non-production PostgreSQL, the platform engineer enables the extension with CREATE EXTENSION vector and creates the chosen table or partition layout. Each embedding column is checked against the pgvector README limits: a vector column can be indexed up to 2,000 dimensions and stored up to 16,000, and halfvec can be indexed up to 4,000. Any model that exceeds the indexed limit must be changed or excluded from the index design before go-live. The partition key should match the tenant boundary so single-tenant queries can be pruned. The step is done when the migration script and the dimension check output are saved in version control.
Define roles and test row security
The team creates an owner role for the schema and separate application roles, grants each only the privileges it needs, and applies row security policies that limit each role to its tenant's rows. An illustrative policy might compare a tenant_id column to a session setting the application sets on connection. A test connects as a non-owner role for tenant A and attempts to read, update and delete tenant B's rows, expecting zero rows or a permission error each time. The team also checks in the PostgreSQL row security documentation which roles bypass policies, and confirms the application role is not one of them. The step is done when the test passes and its output is filed.
Load tenant data and measure recall
The team loads representative data for each tenant, with volumes and value distributions close to what production will hold, then runs the same query set against the shared index and against each tenant's own table or partition. Recall is measured against an exact search without the index, and latency is recorded for each run. Tenants with large and small vector counts are compared, because the README notes that one tenant's vectors can affect recall and speed for others. The query set, parameters and results are kept so the run can be repeated after any change. The step is done when each tenant's results are compared against the recall and latency targets agreed in the first step.
Set logging, backups and a tenant restore test
The operator configures PostgreSQL logging for connections, authentication failures and privilege changes, and confirms that the logs reach the organization's central store. Backups are configured, and a restore is run into a separate instance to recover one tenant's rows, checked by row counts and by a vector query against the restored data. The team confirms the procedure does not touch other tenants' data and asks the vendor or its own DBA to confirm how the vector index is rebuilt after restore. The step is done when the logging evidence and the restore test record are filed.
Review evidence and write the runbook
The platform owner walks the security team through the design note, dimension check, row security test, recall and latency results and restore record, and logs each finding with an owner and a fix. After the review is accepted, the team writes the onboarding runbook: create the tenant's partition or role, apply its policy, load data and repeat the isolation test. The offboarding section covers detaching or deleting the tenant's rows, revoking its role, and confirming how existing backups are handled under the retention policy. The runbook is approved before the first production tenant is onboarded, and that approval is recorded.
Decision path from tenant count to isolation pattern
The diagram starts with two questions: how many tenants will share the database, and how sensitive each tenant's vectors are. A small number of tenants with strict isolation requirements points to separate tables or databases. Many tenants with uniform data point to list partitioning by tenant key, which the pgvector README advises alongside separate tables. Both branches then meet the same gate: every tenant-scoped access path must pass row-level security tests. Next, the index choice is made for the chosen layout and checked per tenant for recall and latency. If one tenant degrades the others, the path returns to the index decision before the layout is accepted.
The layout choice is gated by access tests and a per-tenant check.
Evidence a security reviewer asks for in a pgvector multi tenant review
This table lists the evidence a security reviewer usually asks for when a pgvector database holds more than one tenant's vectors. Each row names the artifact, what the reviewer checks in it, and where the artifact should come from. The main takeaway is that tenant isolation must be shown with live catalog output and test results, and a design statement alone does not satisfy it.
| Evidence | What the reviewer checks | Where it comes from |
|---|---|---|
| Written tenant boundary decision | Whether the team chose list partitions, separate tables or a shared table with row security, and why | Design record approved by the data owner and platform team |
| Production DDL for tables and partitions | The partition key matches the tenant column, and each tenant has its own partition or table | Schema export from production, with migration history |
| Row security policies and role grants | Policies limit each role to its own tenant's rows, shown by a test from a non-owner role | Policy definitions from the catalog, plus test output from a non-owner role |
| Roles that own or bypass policies | Which roles own the tables, hold superuser or BYPASSRLS, or can change policies | Role inventory and table ownership, as set out on the pgvector RBAC page |
| Per-tenant recall and latency on the shared index | Whether one tenant's vectors lower recall or slow queries for the others | Benchmark per tenant against the shared HNSW or IVFFlat index, with query plans |
| Logging configuration and log storage | Which statements and connections are logged, where logs go, and who can read them | Server logging settings, log destination and access rules for the log store |
| Single-tenant backup and restore test | Whether one tenant's rows restore without touching other tenants, and the restored data is verified | Restore test record with row counts and sample vector queries after restore |
| Tenant onboarding and offboarding runbook | Steps to create policies and grants, and to delete a tenant's rows, indexes and backups | Runbook with approval steps and deletion records for each offboarded tenant |
Questions buyers ask about pgvector multi tenant effort and ownership
Does pgvector have built-in multi-tenancy?
No. pgvector adds the vector type, distance operators and HNSW and IVFFlat indexes, but it has no tenant object, tenant setting or per-tenant access control. Isolation comes from PostgreSQL itself: roles and grants, row-level security policies, declarative partitioning and separate tables or schemas. The pgvector README advises list partitioning or separate tables for tenant isolation, which is the pattern most teams start from. Row-level security can restrict each role to its own rows, but each policy adds a check to every query, so test it with your index and query plans before you commit. Choose the layout during design, because moving tenants between layouts later means moving data and rebuilding indexes. Confirm the behavior of your PostgreSQL version in its documentation before you rely on it.
What drives the effort and cost of multi-tenant pgvector?
Effort depends on five factors, and each one changes the design and the test plan:
- Tenant count and skew: a few large tenants and many small ones may need different partitions or tables.
- Index strategy: one shared approximate index, per-partition indexes or separate tables each change recall testing and operations.
- SSO-to-tenant mapping: identity claims must map to a tenant identifier that PostgreSQL enforces, usually through roles or session settings.
- Audit and restore: per-tenant export, deletion and point-in-time recovery requirements add procedures and test cycles.
- Testing: recall, latency and isolation tests must run across tenants and repeat after each index or schema change.
Ask any partner to price these drivers separately in the written scope, so you can see which decisions move the total.
Will one tenant's vectors slow queries for other tenants?
They can. The pgvector README notes that with a shared approximate index, one tenant's vectors can affect recall and speed for others. This matters because HNSW and IVFFlat are approximate, so results depend on what is in the index and how it was built. Uneven tenant sizes make the effect more visible, since a large tenant can dominate the index structure that smaller tenants share. Test before go-live: measure recall against exact search for each tenant group, and measure latency under production-like concurrent load for the largest and smallest tenants. If results fall short, options include partitioning by tenant group, separate tables for large tenants or per-partition indexes. Each option changes storage, backup and operations work, so decide using recall and latency numbers from your own data.
What does the pgvector license cost for a multi-tenant setup?
The pgvector license is the PostgreSQL License, stated in the LICENSE file, with copyright held by the PostgreSQL Global Development Group and The Regents of the University of California. That license covers the extension code. It does not cover the server you run it on, the managed service that hosts it or the staff who operate it, and each of those has its own terms or charges. For a multi-tenant design, the recurring costs are usually the PostgreSQL host or managed instance sized for vector storage and index memory, backup storage, and the people who operate and test the system. Ask any quote to separate one-time build work from recurring hosting and support, and to name which costs you would pay directly to a provider. The pricing and cost page covers these components in more detail.
Can our own team build multi-tenant pgvector without a partner?
Yes, if your team has solid PostgreSQL administration skills and time to run recall testing before go-live. The work is mostly database design, role and policy configuration, partition or table layout, backup and restore procedures, and tests that compare approximate results with exact search for each tenant group. Your team also owns the upgrade path, since pgvector publishes new versions and each one needs testing on your PostgreSQL major version. If you bring in a partner, ask for a written scope that names each deliverable, the isolation tests they will run, the recall and latency results they will hand over and the runbooks your team will keep. Ask who performs the retest after changes and how knowledge transfer is delivered. DeployOpen works to a fixed scope agreed in writing before work starts, and offers retainers for ongoing support and upgrades.
What should we send a partner before a pgvector scoping call?
Start with the tenant model: whether tenants are separate organizations, departments or end customers, how many there are now, how fast that number will grow and how uneven their data volumes are. Add expected row counts and vector storage per tenant, along with the embedding model and its dimensions. The pgvector README says a vector column can be indexed up to 2,000 dimensions, and halfvec up to 4,000, so the dimension count shapes the index choice. Describe identity requirements: which identity provider issues tenant claims, how users map to tenants and which roles administrators hold. State audit requirements, including which events must be logged and who reviews them, and the restore target for each tenant. Finally, list the PostgreSQL version, the hosting model (your data center, a cloud account or a managed service) and any compliance frameworks your assessors will check.
Do managed PostgreSQL services support pgvector for multi-tenant workloads?
Some do, but support depends on the provider and its version, so confirm it in each provider's documentation. Microsoft's documentation for Azure Database for PostgreSQL Flexible Server says the extension is installed under the name vector, so allowlist settings and CREATE EXTENSION must use vector. Check which pgvector version each provider ships, whether it supports the row-level security and declarative partitioning you plan to use and whether your administrative role can install the extension. The pgvector vector.control file does not mark the extension as trusted, so a host may require elevated privileges to install it. Ask each provider for written confirmation of the extension version, supported index types, backup and point-in-time restore behavior and any limits on extensions per database. Those answers decide whether the design runs on a managed service or on servers you operate.
How DeployOpen designs and builds tenant isolation in your infrastructure
DeployOpen plans and builds pgvector multi-tenant designs inside your own PostgreSQL environment, in your cloud accounts, data centers or air-gapped networks. The work starts with a written scope that fixes the tenant model, the partitioning or row-level security choices and the tests that check isolation. Each design choice is documented so your security and compliance teams can review it before it reaches production.
How we scope
- The written scope names the tenant model: separate tables, list partitions or row-level security on a shared table.
- It records which PostgreSQL version, pgvector version and host type your environment runs, confirmed before design starts.
- Fixed-scope agreements set deliverables and timelines in writing, and ongoing support is available as a retainer.
How we build
- Decide whether HNSW or IVFFlat indexes sit on a shared table or on separate partitions, and document the recall effects.
- Write row security policies and role grants so each tenant role sees only its own rows, then test them.
- Install the extension under its name vector with CREATE EXTENSION, and restrict who can run it on your servers.
How we hand over
- Deliverables include the schema, partition and policy definitions, index settings and the isolation test results.
- Documentation covers tenant onboarding steps, how new partitions or roles are added, and who owns each change.
- Your team receives the runbook and the evidence your security and compliance teams request.
How we support
- Isolation tests are rerun after each pgvector upgrade, using the project's CHANGELOG to plan the change.
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Security testing of the tenant boundary can be scoped as a separate engagement with its own written scope.

