public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: mrudula attili <[email protected]>
To: [email protected]
Subject: Re: Can't create a table with vector type as a non-super user
Date: Tue, 30 Sep 2025 11:11:51 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CACmLaviY60Vx64hcacS687kBA3tXRfcYzrSJb6XaHU4X5qOrmQ@mail.gmail.com>
References: <CACmLaviY60Vx64hcacS687kBA3tXRfcYzrSJb6XaHU4X5qOrmQ@mail.gmail.com>
On 9/30/25 6:35 AM, mrudula attili wrote:
> Hello Team,
>
>
> Concern:
> As its a production environment, we are not really happy to give away
> the usage on public schema.
>
> Is there a way we could get the end users make use of the extension
> without granting usage on public schema
In addition to what Tom Lane suggested:
https://github.com/pgvector/pgvector/blob/master/vector.control
relocatable = true
And per here:
https://www.postgresql.org/docs/current/extend-extensions.html#EXTEND-EXTENSIONS-RELOCATION
"
A fully relocatable extension can be moved into another schema at any
time, even after it's been loaded into a database. This is done with the
ALTER EXTENSION SET SCHEMA command, which automatically renames all the
member objects into the new schema. Normally, this is only possible if
the extension contains no internal assumptions about what schema any of
its objects are in. Also, the extension's objects must all be in one
schema to begin with (ignoring objects that do not belong to any schema,
such as procedural languages). Mark a fully relocatable extension by
setting relocatable = true in its control file.
"
You could move the extension to a schema that the users do have usage on.
>
>
> Thanks,
> SA
>
>
>
--
Adrian Klaver
[email protected]
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Can't create a table with vector type as a non-super user
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox