PostgreSQL without superuser privileges _at all?_ #1430
-
I'm trying to use my VPS provider's managed databases, but even given their 'admin user' creds, I get: $ psql windmilldb -f init-db-as-superuser.sql
CREATE ROLE
GRANT
GRANT
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
psql:init-db-as-superuser.sql:20: ERROR: must be superuser to create bypassrls users
psql:init-db-as-superuser.sql:24: ERROR: role "windmill_admin" does not exist
psql:init-db-as-superuser.sql:28: ERROR: role "windmill_admin" does not exist
psql:init-db-as-superuser.sql:32: ERROR: role "windmill_admin" does not exist
psql:init-db-as-superuser.sql:36: ERROR: role "windmill_admin" does not exist It looks like they don't support superusers at all:
Is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Do you need RLS ? (Do you have non-admins users that shouldn't be able to see/edit everything) ? If not, you could remove BYPASSRLS from that statement and then we would need to disable row level services on all the relevant tables. |
Beta Was this translation helpful? Give feedback.
Okay, trying that out — removed BYPASSRLS. As mentioned in the discord, I booted everything up for the first time, so it could run the migrations; then I ran this: