diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2003-01-23 23:39:07 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2003-01-23 23:39:07 +0000 |
commit | ef7422510e93266e5aa9bb926d6747d5f2ae21f4 (patch) | |
tree | 98643df576fccfcb2cc4c9e37fcf533f64f1a56c /src/include/nodes/parsenodes.h | |
parent | aa78ca3a9591def436d6ce87cb37e7ad5f584308 (diff) | |
download | postgresql-ef7422510e93266e5aa9bb926d6747d5f2ae21f4.tar.gz postgresql-ef7422510e93266e5aa9bb926d6747d5f2ae21f4.zip |
Grant options, and cascading revoke. Grant options are allowed only for
users right now, not groups. Extension of has_foo_privileges functions to
query the grant options. Extension of aclitem type to store grantor.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 9bbee593bf4..f6709737d6e 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.226 2003/01/20 18:55:00 tgl Exp $ + * $Id: parsenodes.h,v 1.227 2003/01/23 23:39:07 petere Exp $ * *------------------------------------------------------------------------- */ @@ -750,7 +750,7 @@ typedef enum GrantObjectType /* * Grantable rights are encoded so that we can OR them together in a bitmask. - * The present representation of AclItem limits us to 30 distinct rights. + * The present representation of AclItem limits us to 15 distinct rights. * Caution: changing these codes breaks stored ACLs, hence forces initdb. */ #define ACL_INSERT (1<<0) /* for relations */ @@ -778,6 +778,8 @@ typedef struct GrantStmt * strings) */ List *privileges; /* integer list of privilege codes */ List *grantees; /* list of PrivGrantee nodes */ + bool grant_option; /* grant or revoke grant option */ + DropBehavior behavior; /* drop behavior (for REVOKE) */ } GrantStmt; typedef struct PrivGrantee |