PG_DEFAULT_ACL
PG_DEFAULT_ACL records the initial privileges assigned to the newly created objects.
Name |
Type |
Description |
---|---|---|
defaclrole |
oid |
ID of the role associated with the permission |
defaclnamespace |
oid |
Namespace associated with the permission; the value is 0 if no ID |
defaclobjtype |
"char" |
Object type of the permission:
|
defaclacl |
aclitem[] |
Access permissions that this type of object should have on creation |
Examples
Run the following command to view the initial permissions of the new user role1:
You can also run the following statement to convert the format:
If the following information is displayed, user1 grants role1 the read permission on schema user1.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.