Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 266 Bytes

File metadata and controls

18 lines (14 loc) · 266 Bytes

List postgres roles and permissions

Problem

You want to know who are the available users and permissions in a PostgreSQL database.

Solution

select
    rolname,
    rolsuper,
    rolcreaterole,
    rolcreatedb,
    rolcanlogin
from
    pg_roles;