1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add List Database Users as a postgres til.

This commit is contained in:
jbranchaud
2015-09-18 16:56:48 -05:00
parent f6f83bc8d5
commit 71a2736195
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# 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 | {}
```