pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #904: Can't create a table with vector type as a non-super user
Date: Tue, 30 Sep 2025 13:40:18 +0000
Message-ID: <gh-pgvector-pgvector-904-c3352230972@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-904@github.com>
References: <gh-pgvector-pgvector-904@github.com>

@matkro15 There's a few things to unpack here.

[`CREATE EXTENSION`](https://www.postgresql.org/docs/current/sql-createextension.html) itself is a privileged command. There is a notion of a "trusted extension" that allows unprivileged PostgreSQL users to install extensions. `pgvector` is not one of those. This will still require someone with privileges to install it. It sounds like this isn't an issue in this case, but wanted to set some context for the next part.

If you don't want to give your users access to your `public` schema (which is a great best practice to follow!), you can explicitly install the extension in a schema using `CREATE EXTENSION extension_name SCHEMA schema_name`. Then you can give usage access to your unprivileged users on that schema.

view thread (3+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-904-c3352230972@github.com>
Permalink:  ../gh-pgvector-pgvector-904-c3352230972@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox