pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #904: Can't create a table with vector type as a non-super user 3+ messages / 3 participants [nested] [flat]
* [pgvector/pgvector] issue #904: Can't create a table with vector type as a non-super user @ 2025-09-30 13:18 "matkro15 (@matkro15)" <noreply+matkro15@github.com> 0 siblings, 0 replies; 3+ messages in thread From: matkro15 (@matkro15) @ 2025-09-30 13:18 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hello Team, I have recently installed the pgvector extension on one of our production databases. Managed to create the extension as super user and create table with the vector type. But a non super user (a read write user of the database) is not able to create a table with vector type and keeps getting the below error. CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3)) [2025-09-30 09:22:29] [42704] ERROR: type "vector" does not exist [2025-09-30 09:22:29] Position: 57 Actions taken: 1) Granted usage of type vector to user - No luck 2) Granted usage on schema public to user - Worked 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 Thanks, mkro ^ permalink raw [nested|flat] 3+ messages in thread
* Re: [pgvector/pgvector] issue #904: Can't create a table with vector type as a non-super user @ 2025-09-30 13:40 ` "jkatz (@jkatz)" <noreply+jkatz@github.com> 1 sibling, 0 replies; 3+ messages in thread From: jkatz (@jkatz) @ 2025-09-30 13:40 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@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. ^ permalink raw [nested|flat] 3+ messages in thread
* Re: [pgvector/pgvector] issue #904: Can't create a table with vector type as a non-super user @ 2025-10-01 17:20 ` "ankane (@ankane)" <noreply+ankane@github.com> 1 sibling, 0 replies; 3+ messages in thread From: ankane (@ankane) @ 2025-10-01 17:20 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 3+ messages in thread
end of thread, other threads:[~2025-10-01 17:20 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-09-30 13:18 [pgvector/pgvector] issue #904: Can't create a table with vector type as a non-super user "matkro15 (@matkro15)" <noreply+matkro15@github.com> 2025-09-30 13:40 ` "jkatz (@jkatz)" <noreply+jkatz@github.com> 2025-10-01 17:20 ` "ankane (@ankane)" <noreply+ankane@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