Postgres List Users and Roles

To list all user(role) accounts in the PostgreSQL database server, you use the du psql  command as follows:

$ psqlpsql (11.1, server 11.0)Type "help" for help.admin=# du                                   List of roles Role name |                         Attributes                         | Member of -----------+------------------------------------------------------------+----------- admin     | Superuser, Create role, Create DB                          | {} postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS | {}(END)