You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`role` - (Required) The name of the role to which grant default privileges on.
31
+
*`role` - (Required) The role that will automatically be granted the specified privileges on new objects created by the owner.
32
32
*`database` - (Required) The database to grant default privileges for this role.
33
-
*`owner` - (Required) Role for which apply default privileges (You can change default privileges only for objects that will be created by yourself or by roles that you are a member of).
33
+
*`owner` - (Required) Specifies the role that creates objects for which the default privileges will be applied.
34
34
*`schema` - (Optional) The database schema to set default privileges for this role.
35
35
*`object_type` - (Required) The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
36
-
*`privileges` - (Required) The list of privileges to apply as default privileges. An empty list could be provided to revoke all default privileges for this role.
36
+
*`privileges` - (Required) List of privileges (e.g., SELECT, INSERT, UPDATE, DELETE) to grant on new objects created by the owner. An empty list could be provided to revoke all default privileges for this role.
37
37
38
38
39
39
## Examples
40
40
41
-
Revoke default privileges for functions for "public" role:
41
+
### Grant default privileges for tables to "current_role" role:
Whenever the `owner_role` creates a new table in the `public` schema, the `current_role` is automatically granted SELECT, INSERT, and UPDATE privileges on that table.
54
+
55
+
### Revoke default privileges for functions for "public" role:
0 commit comments