diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-04-02 03:34:46 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-04-02 03:34:46 +0000 |
commit | 6ec8d375f5a68e706a05624274b5fa3d1c460784 (patch) | |
tree | 2e5883616b14aa21df6291a37c1b6731d74eca7b | |
parent | 46d11f314fe41537ea6edf9512b7bc5c0347493f (diff) | |
download | postgresql-6ec8d375f5a68e706a05624274b5fa3d1c460784.tar.gz postgresql-6ec8d375f5a68e706a05624274b5fa3d1c460784.zip |
New node T_CreateSeqStmt.
-rw-r--r-- | src/include/nodes/nodes.h | 3 | ||||
-rw-r--r-- | src/include/nodes/parsenodes.h | 14 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index 3942b74a26c..560fd1a38d0 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.5 1997/03/02 02:12:49 momjian Exp $ + * $Id: nodes.h,v 1.6 1997/04/02 03:34:44 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -178,6 +178,7 @@ typedef enum NodeTag { T_DestroydbStmt, T_VacuumStmt, T_ExplainStmt, + T_CreateSeqStmt, T_A_Expr = 700, T_Attr, diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 2e1fbeddc96..dee1c1eac57 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.10 1997/01/16 14:56:45 momjian Exp $ + * $Id: parsenodes.h,v 1.11 1997/04/02 03:34:46 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -139,6 +139,17 @@ typedef struct CreateStmt { } CreateStmt; /* ---------------------- + * Create SEQUENCE Statement + * ---------------------- + */ + +typedef struct CreateSeqStmt { + NodeTag type; + char *seqname; /* the relation to create */ + List *options; +} CreateSeqStmt; + +/* ---------------------- * Create Version Statement * ---------------------- */ @@ -168,6 +179,7 @@ typedef struct DefineStmt { typedef struct DestroyStmt { NodeTag type; List *relNames; /* relations to be dropped */ + bool sequence; } DestroyStmt; /* ---------------------- |