PostgreSQL Users/Roles and Privilages
Roles: PostgreSQL manages database access permissions using the concept of roles. A role can be thought of as either a database user, or a group of database users, depending on how the role is set up. Roles can own database objects (for example, tables and functions) and can assign privileges on those objects to other roles to control who has access to which objects. Furthermore, it is possible to grant membership in a role to another role, thus allowing the member role to use privileges assigned to another role. Role Attributes: CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE LOGIN NOLOGIN SUPERUSER NOSUPERUSER INHERIT NOINHERIT BYPASSRLS NOBYPASSRLS REPLICATION NOREPLICATION PASSWORD ENCRYPTED PASSWORD CONNECTION LIMIT VALID UNTIL Examples: postgres=# \du+ List of roles Role name | Attributes