diff options
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 31aadb449d5..fe2d1bb7ffe 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.130 2001/06/04 23:27:23 momjian Exp $ + * $Id: parsenodes.h,v 1.131 2001/06/09 23:21:55 petere Exp $ * *------------------------------------------------------------------------- */ @@ -137,15 +137,27 @@ typedef struct AlterTableStmt } AlterTableStmt; /* ---------------------- - * Change ACL Statement + * Grant Statement * ---------------------- */ -typedef struct ChangeACLStmt + +typedef struct GrantStmt +{ + NodeTag type; + bool is_grant; /* not revoke */ + List *relnames; + char *privileges; + List *grantees; +} GrantStmt; + + +typedef struct PrivGrantee { NodeTag type; - List *relNames; - char *aclString; -} ChangeACLStmt; + char *username; /* if both are NULL then PUBLIC */ + char *groupname; +} PrivGrantee; + /* ---------------------- * Close Portal Statement |