Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy