You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.
I get an error when I try to add a user to the group role pg_read_server_files without superuser access.
When I run the command GRANT "username" TO pg_read_server_files; manually, there is no problem but when I use postgresql_role I have a permission denied error.
In both case I use the same user to connect to the database which is not superuser.
I'm a bit surprised that Azure allows to grant pg_read_server_files role if admin user is not a superuser as it bypasses the database-level permissions but I never used Azure so I need to check this behavior.
But before that, could you just clarify one thing:
I was surprised too but the command GRANT "username" TO pg_read_server_files; was the command I ran. And it works !
I "discovered" this command by using pgAdmin after I add the user to the pg_read_server_files memberships and retrieve the "create script" of this group role.
Here is the generated "create script" from pgAdmin :
-- Role: pg_read_server_files
-- DROP ROLE pg_read_server_files;
CREATE ROLE pg_read_server_files WITH
NOLOGIN
NOSUPERUSER
INHERIT
NOCREATEDB
NOCREATEROLE
NOREPLICATION;
GRANT "username" TO pg_read_server_files;
On the other side, the username's membership is still empty...
Hi,
I get an error when I try to add a user to the group role
pg_read_server_files
without superuser access.When I run the command
GRANT "username" TO pg_read_server_files;
manually, there is no problem but when I usepostgresql_role
I have a permission denied error.In both case I use the same user to connect to the database which is not superuser.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Expected Behavior
It should add the user to the group role
pg_read_server_files
.Actual Behavior
I have a permission denied error.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
This scenario is running on Azure PostgreSQL database so I don't have access to superuser account...
Thanks for your help.
The text was updated successfully, but these errors were encountered: