diff options
| author | Marc G. Fournier | 1997-12-04 00:28:15 +0000 |
|---|---|---|
| committer | Marc G. Fournier | 1997-12-04 00:28:15 +0000 |
| commit | 4c04f7724ed4b9aa798810f2cd016b6520a4f2a6 (patch) | |
| tree | f04eaeed04ad6f4314091828e03e7acafa548510 /src/include/nodes | |
| parent | 333323f304af75ee286367a7f84acc74ed16dd82 (diff) | |
From: todd brandys <brandys@eng3.hep.uiuc.edu>
An extension to the code to allow for a pg_password authentication database
that is *seperate* from the system password file
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/nodes.h | 5 | ||||
| -rw-r--r-- | src/include/nodes/parsenodes.h | 26 |
2 files changed, 29 insertions, 2 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index 7239818bd95..7388c0af832 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.17 1997/11/21 18:12:25 momjian Exp $ + * $Id: nodes.h,v 1.18 1997/12/04 00:28:01 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -186,6 +186,9 @@ typedef enum NodeTag T_DropTrigStmt, T_CreatePLangStmt, T_DropPLangStmt, + T_CreateUserStmt, + T_AlterUserStmt, + T_DropUserStmt, T_A_Expr = 700, T_Attr, diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index c0a77d1ff3a..8674f456dd1 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.35 1997/11/24 05:09:50 momjian Exp $ + * $Id: parsenodes.h,v 1.36 1997/12/04 00:28:03 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -198,6 +198,30 @@ typedef struct DropPLangStmt /* ---------------------- + * Create/Alter/Drop User Statements + * ---------------------- + */ +typedef struct CreateUserStmt +{ + NodeTag type; + char* user; /* PostgreSQL user login */ + char* password; /* PostgreSQL user password */ + bool* createdb; /* Can the user create databases? */ + bool* createuser; /* Can this user create users? */ + List* groupElts; /* The groups the user is a member of */ + char* validUntil; /* The time the login is valid until */ +} CreateUserStmt; + +typedef CreateUserStmt AlterUserStmt; + +typedef struct DropUserStmt +{ + NodeTag type; + char* user; /* PostgreSQL user login */ +} DropUserStmt; + + +/* ---------------------- * Create SEQUENCE Statement * ---------------------- */ |
