]> granicus.if.org Git - postgresql/commitdiff
New node T_CreateSeqStmt.
authorVadim B. Mikheev <vadim4o@yahoo.com>
Wed, 2 Apr 1997 03:34:46 +0000 (03:34 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Wed, 2 Apr 1997 03:34:46 +0000 (03:34 +0000)
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h

index 3942b74a26ce5cb6132d52148aaf23aec79738a4..560fd1a38d0153a50b80029322ec12c26cfcaba6 100644 (file)
@@ -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,
index 2e1fbeddc96a657797eb7212ca47e0a4b2f8d207..dee1c1eac57bcf3b8a6365404a782a967c513b70 100644 (file)
@@ -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 $
  *
  *-------------------------------------------------------------------------
  */
@@ -138,6 +138,17 @@ typedef struct CreateStmt {
     int                        archiveLoc;     /* smgrid (-1 if none) */
 } 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;
 
 /* ----------------------