Creating a user-defined role

Use the create role command to create a role. The syntax is:

create role role_name [with passwd "password"]

where:

For example, to create the intern_role without a password, enter:

create role intern_role

To create the doctor_role and assign the password “physician”, enter:

create role doctor_role with passwd "physician"