To perform actions on a schema or its objects, the role must also have the USAGE privilege on the schema’s parent database.
Schema-level privileges
Examples of granting schema permissions
USAGE permission
The following code example grants the roledeveloper_role permission to use the specified schema.
MODIFY permission
The following code example gives the roledeveloper_role permission to alter properties or drop the specified schema.
CREATE permission
The following code example grants the roledeveloper_role the ability to create new objects in the specified schema:
DELETE ANY permission
The following code example gives the roledeveloper_role permission to delete rows and partitions from all current and future tables in the specified schema:
INSERT ANY permission
The following code example grants the roledeveloper_role permission to insert rows into all current and future tables in the specified schema:
UPDATE ANY permission
The following code example gives the roledeveloper_role permission to update rows in all current and future tables in the specified schema:
TRUNCATE ANY permission
The following code example grants the roledeveloper_role the ability to truncate all current and future tables in the specified schema:
VACUUM ANY permission
The following code example gives the roledeveloper_role permission to run VACUUM operations on all current and future tables in the specified schema:
MODIFY ANY permission
The following code example grants the roledeveloper_role permission to modify or drop all current and future objects in the specified schema:
SELECT ANY permission
The following code example gives the roledeveloper_role permission to select data from all current and future objects in the specified schema:
ALL permissions
The following code example gives the roledeveloper_role all the direct permissions over schema public: