Roles Wizard (PostgreSQL)
Go Up to PostgreSQL Object Wizards
This wizard lets you build and submit a simple CREATE ROLE statement, defining a new database role.
To create a new role using a wizard
- Open a creation wizard for a role. For details, see Opening an Object Wizard.
- Use the following topics as a guide to setting properties and performing tasks as you pass through the wizard panels:
- Properties panel. For more information, see Roles (PostgreSQL) - Properties.
- Membership panel. For more information, see Roles (PostgreSQL) - Membership.
- Comment panel. For more information, see for details, see Adding a Comment to an Object.
- DDL View panel. For more information, see Previewing the DDL Generated to Create the New Object.
- Click Execute to create the object.
Roles (PostgreSQL) - Properties
When creating or editing a role, this tab/panel lets you work with the following settings:
| Setting | Availability and Description |
|---|---|
|
Name |
Lets you provide the name of the new role. |
|
Password and Encrypted Password |
These items control how the password is created for the new role. The Password control lets you provide a password for the new role. If Encrypted Password is selected, an |
|
Account Expires |
Selecting this control enables a calendar widget that lets you select a value for a |
|
Connection Limit |
Lets you provide the value for a |
|
Login |
This control determines whether a role is allowed to log in. If Login is selected, a LOGIN parameter is included in the DDL. Otherwise, a |
|
Superuser |
This control determines whether a role can override all access restrictions within the database. If Superuser is selected, a |
|
Create Database and Create Roles |
These controls determine whether a role can create databases or roles, respectively. When selected, |
|
Update Catalog |
Only available if Superuser is selected. By default, this option is selected, dictating that this role can update system catalogs directly. If deslected, an |
|
Replication |
This setting determine whether a role can initiate streaming replication or can control backup mode. If Replication is selected, a |
Roles (PostgreSQL) - Membership
When creating or editing a role, this tab/panel lets you append one or more GRANT statements to the generated CREATE ROLE statement, granting membership in the role to other roles. For each GRANT statement to be generated, select a role from the Groups list and click Join to assign membership in the selected role to the role being created.