List roles
pg_list_rolesList database roles with login, superuser, createdb, createrole attributes and inherited memberships to identify who has access to a database.
Instructions
List database roles (users and groups) with their login/superuser/createdb/createrole attributes and inherited role memberships. Use this to answer 'who has access to this database?' without needing to read pg_authid directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeSystem | No | If true, include built-in `pg_*` roles (pg_read_all_data, pg_monitor, etc.). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes |