aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/acl.h
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2022-03-22 09:06:15 -0400
committerAndrew Dunstan <andrew@dunslane.net>2022-03-22 10:28:31 -0400
commitd11e84ea466b4e3855d7bd5142fb68f51c273567 (patch)
tree5bb1bf60ef69eaefd8a622c42f58b2550cb630bc /src/include/utils/acl.h
parent29992a6a509b256efc4ac560a1586b51a64b2637 (diff)
downloadpostgresql-d11e84ea466b4e3855d7bd5142fb68f51c273567.tar.gz
postgresql-d11e84ea466b4e3855d7bd5142fb68f51c273567.zip
Add String object access hooks
This caters for cases where the access is to an object identified by name rather than Oid. The first user of these is the GUC access controls Joshua Brindle and Mark Dilger Discussion: https://postgr.es/m/47F87A0E-C0E5-43A6-89F6-D403F2B45175@enterprisedb.com
Diffstat (limited to 'src/include/utils/acl.h')
-rw-r--r--src/include/utils/acl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h
index 1ce4c5556e7..91ce3d8e9c3 100644
--- a/src/include/utils/acl.h
+++ b/src/include/utils/acl.h
@@ -146,9 +146,11 @@ typedef struct ArrayType Acl;
#define ACL_CREATE_CHR 'C'
#define ACL_CREATE_TEMP_CHR 'T'
#define ACL_CONNECT_CHR 'c'
+#define ACL_SET_VALUE_CHR 's'
+#define ACL_ALTER_SYSTEM_CHR 'A'
/* string holding all privilege code chars, in order by bitmask position */
-#define ACL_ALL_RIGHTS_STR "arwdDxtXUCTc"
+#define ACL_ALL_RIGHTS_STR "arwdDxtXUCTcsA"
/*
* Bitmasks defining "all rights" for each supported object type