Can't create a PostgreSQL Superuser role to get an Application installed and running

£可爱£侵袭症+ 提交于 2019-12-01 20:25:28
Saloni Sonpal

To explain the users and roles a little better for Azure Database for PostgreSQL:

By default, when a server is created we have the following 3 roles defined, which you can also see when you run SELECT rolname FROM pg_roles;

  1. azure_pg_admin
  2. azure_superuser
  3. server admin login – the admin login the user created the server with – which by default is a member of azure_pg_admin.

Ours is a managed PaaS service and Microsoft is the azure_superuser. We don’t grant superuser privileges to the user.

With that as baseline, there is at least one role (user) at any given time that is part of azure_pg_admin group i.e. server admin login. This user can create databases, create custom roles and customize privileges, and create additional users that are member of azure_pg_admin. A user is either a part of this group or not. Any user outside this group will not have those privileges.

Hope that helps answer your question.

Saloni

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!