mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
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
This commit is contained in:
@@ -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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -285,6 +285,34 @@ typedef struct DropUserStmt
|
||||
} 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
|
||||
* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user