PostgreSQLSecurity & users
Superusers and role creators
Roles with superuser or the ability to create other roles.
Not yet verified. How scripts are tested
1SELECT rolname, rolsuper, rolcreaterole, rolcreatedb,2 rolcanlogin, rolvaliduntil3FROM pg_roles4WHERE rolsuper OR rolcreaterole5ORDER BY rolname;Paste it into your query tool.
More PostgreSQL scripts: Security & users
- Read-only access to a schemaCreates a read-only group role for one schema, including tables created later, and gives it to a login user. Granting through a role means you add or…
- Read-write access to a schemaCreates a read-write group role for one schema: query and change data in existing and future tables, and use their sequences, without being able to…
- Who has which privileges in a schemaTable privileges in one schema by role, the default privileges that apply to tables created later, and which login roles are members of which group…