aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/aclchk_internal.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-10-11 18:35:19 -0400
committerPeter Eisentraut <peter_e@gmx.net>2018-01-19 14:01:14 -0500
commit2c6f37ed62114bd5a092c20fe721bd11b3bcb91e (patch)
tree080292978101fbbd094f886c05b03a94c43c877c /src/include/utils/aclchk_internal.h
parent42b5856038a5af6bb4ec3c09b62d9d9a3ab43172 (diff)
downloadpostgresql-2c6f37ed62114bd5a092c20fe721bd11b3bcb91e.tar.gz
postgresql-2c6f37ed62114bd5a092c20fe721bd11b3bcb91e.zip
Replace GrantObjectType with ObjectType
There used to be a lot of different *Type and *Kind symbol groups to address objects within different commands, most of which have been replaced by ObjectType, starting with b256f2426433c56b4bea3a8102757749885b81ba. But this conversion was never done for the ACL commands until now. This change ends up being just a plain replacement of the types and symbols, without any code restructuring needed, except deleting some now redundant code. Reviewed-by: Michael Paquier <michael.paquier@gmail.com> Reviewed-by: Stephen Frost <sfrost@snowman.net>
Diffstat (limited to 'src/include/utils/aclchk_internal.h')
-rw-r--r--src/include/utils/aclchk_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/aclchk_internal.h b/src/include/utils/aclchk_internal.h
index 1843f50b5a0..f7c44fcd4ba 100644
--- a/src/include/utils/aclchk_internal.h
+++ b/src/include/utils/aclchk_internal.h
@@ -26,12 +26,12 @@
* Note: 'all_privs' and 'privileges' represent object-level privileges only.
* There might also be column-level privilege specifications, which are
* represented in col_privs (this is a list of untransformed AccessPriv nodes).
- * Column privileges are only valid for objtype ACL_OBJECT_RELATION.
+ * Column privileges are only valid for objtype OBJECT_TABLE.
*/
typedef struct
{
bool is_grant;
- GrantObjectType objtype;
+ ObjectType objtype;
List *objects;
bool all_privs;
AclMode privileges;