mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
14 lines
463 B
Markdown
14 lines
463 B
Markdown
# List Database Users
|
|
|
|
Within `psql`, type `\du` to list all the users for a database and their
|
|
respective permissions.
|
|
|
|
```bash
|
|
> \du
|
|
List of roles
|
|
Role name | Attributes | Member of
|
|
------------+------------------------------------------------+-----------
|
|
jbranchaud | Superuser, Create role, Create DB, Replication | {}
|
|
sampleuser | Create DB | {}
|
|
```
|