summaryrefslogtreecommitdiff
path: root/src/include/nodes
diff options
context:
space:
mode:
authorBruce Momjian1999-12-16 17:24:19 +0000
committerBruce Momjian1999-12-16 17:24:19 +0000
commit99b8f8451170a5c2fc130426952819502c10aea9 (patch)
tree944f4d4ea987f31cdf63ea71abf36e9d670c209a /src/include/nodes
parent4cb1fb6f59502e834c3c1de8e626b4c68c0d1711 (diff)
Here's the Create/Alter/Drop Group stuff that's been really overdue. I
didn't have time for documentation yet, but I'll write some. There are still some things to work out what happens when you alter or drop users, but the group stuff in and by itself is done. -- Peter Eisentraut Sernanders väg 10:115
Diffstat (limited to 'src/include/nodes')
-rw-r--r--src/include/nodes/nodes.h5
-rw-r--r--src/include/nodes/parsenodes.h30
2 files changed, 33 insertions, 2 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h
index d362e0a28e9..94641eff086 100644
--- a/src/include/nodes/nodes.h
+++ b/src/include/nodes/nodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodes.h,v 1.58 1999/12/10 03:56:09 momjian Exp $
+ * $Id: nodes.h,v 1.59 1999/12/16 17:24:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -189,6 +189,9 @@ typedef enum NodeTag
T_DropUserStmt,
T_LockStmt,
T_ConstraintsSetStmt,
+ T_CreateGroupStmt,
+ T_AlterGroupStmt,
+ T_DropGroupStmt,
T_A_Expr = 700,
T_Attr,
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 45e586aad0c..714f06d5db0 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.91 1999/12/14 00:08:21 momjian Exp $
+ * $Id: parsenodes.h,v 1.92 1999/12/16 17:24:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -286,6 +286,34 @@ typedef struct DropUserStmt
/* ----------------------
+ * Create/Alter/Drop Group Statements
+ * ----------------------
+ */
+typedef struct CreateGroupStmt
+{
+ NodeTag type;
+ char *name; /* name of the new group */
+ int sysid; /* group id (-1 if pick default) */
+ List *initUsers; /* list of initial users */
+} CreateGroupStmt;
+
+typedef struct AlterGroupStmt
+{
+ NodeTag type;
+ char *name; /* name of group to alter */
+ int action; /* +1 = add, -1 = drop, 0 = other (HACK!) */
+ int sysid; /* sysid change */
+ List *listUsers; /* list of users to add/drop */
+} AlterGroupStmt;
+
+typedef struct DropGroupStmt
+{
+ NodeTag type;
+ char *name;
+} DropGroupStmt;
+
+
+/* ----------------------
* Create SEQUENCE Statement
* ----------------------
*/