Skip to main content
Version: 0.9.1

3.22. Permissions

In pgModeler, permissions are responsible for generating the GRANT and REVOKE commands for the associated objects. Unlike all the other editing forms which are designed to handle one instance of an object, the permission editing form handles all permissions for a particular database object.

In PostgreSQL, permissions are composed by one or more roles and a set of privileges applied to the associated object. Only a few kind of database objects can have permissions assigned to them and they are: database, tables, columns, views, sequences, functions, aggregates, languages, domain, types, schemas and tablespaces. The attributes of permissions form are detailed below.

AttributeDescription
IDThe unique identifier for the current permission being edited. This attribute can't be changed by the user.
RolesA set of roles associated to the current permission. The privileges checked on the Privileges group will be applied only to the roles listed in this field. If you want to apply the privileges to all roles on the database you can leave this field empty.
PrivilegesThe set of privileges over the database object that the roles can have. The list of privileges varies depending on the type of the object. The GRANT OPTION indicates that the associated privilege can be granted to other roles by the ones listed on the Roles field.
GrantCreates a GRANT permission.
RevokeCreates a REVOKE permission.
CascadeThis option is used only for revoke permissions and causes the cascade privilege revoking. In other words, when the role that granted a specific privilege to other roles (with GRANT OPTION) has a privilege revoked then all other roles will have the same privilege revoked as well.
PermissionsThis grid lists all the permissions configured for the database object. User can use this field to edit or even delete one or all the created permissions.

References​

** Permission DDLs **

https://www.postgresql.org/docs/current/static/sql-grant.html


https://www.postgresql.org/docs/current/static/sql-revoke.html