Within psql, type \du to list all the users for a database and their
respective permissions.
>\du
List of roles
Role name | Attributes | Member of
------------+------------------------------------------------+-----------
jbranchaud | Superuser, Create role, Create DB, Replication |{}
sampleuser | Create DB |{}
Looking for help?
Hashrocket
developers believe that data quality is as important as code quality. We enjoy
all the challenges of relational databases, from finding the fastest index, to
structuring data to fit the needs of an application. We're eager to share our
experiences; check out
PG Casts,
our series of free PostgreSQL screencasts.