8000 New node T_CreateSeqStmt. · postgrespro/postgres_cluster@6ec8d37 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6ec8d37

Browse files
committed
New node T_CreateSeqStmt.
1 parent 46d11f3 commit 6ec8d37

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/include/nodes/nodes.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: nodes.h,v 1.5 1997/03/02 02:12:49 momjian Exp $
9+
* $Id: nodes.h,v 1.6 1997/04/02 03:34:44 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -178,6 +178,7 @@ typedef enum NodeTag {
178178
T_DestroydbStmt,
179179
T_VacuumStmt,
180180
T_ExplainStmt,
181+
T_CreateSeqStmt,
181182

182183
T_A_Expr = 700,
183184
T_Attr,

src/include/nodes/parsenodes.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: parsenodes.h,v 1.10 1997/01/16 14:56:45 momjian Exp $
9+
* $Id: parsenodes.h,v 1.11 1997/04/02 03:34:46 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -138,6 +138,17 @@ typedef struct CreateStmt {
138138
int archiveLoc; /* smgrid (-1 if none) */
139139
} CreateStmt;
140140

141+
/* ----------------------
142+
* Create SEQUENCE Statement
143+
* ----------------------
144+
*/
145+
146+
typedef struct CreateSeqStmt {
147+
NodeTag type;
148+
char *seqname; /* the relation to create */
149+
List *options;
150+
} CreateSeqStmt;
151+
141152
/* ----------------------
142153
* Create Version Statement
143154
* ----------------------
@@ -168,6 +179,7 @@ typedef struct DefineStmt {
168179
typedef struct DestroyStmt {
169180
NodeTag type;
170181
List *relNames; /* relations to be dropped */
182+
bool sequence;
171183
} DestroyStmt;
172184

173185
/* ----------------------

0 commit comments

Comments
 (0)
0