Permanent database users are defined in the database with a CREATE USER statement. After being authenticated at logon, permanent users are authorized the following privileges:
- Privileges granted directly to the user with the GRANT statement.
- Privileges indirectly given to the user (automatic, implicit, and inherited privileges).
- Privileges granted to a role that has been granted to the user.Users with more than one role automatically have access to the default role or all their roles, as specified in the CREATE USER statement. The SET ROLE statement allows users to access roles other than their default role.