summaryrefslogtreecommitdiff
path: root/src/include/nodes
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-09-23 17:03:39 +0000
committerBruce Momjian <bruce@momjian.us>1999-09-23 17:03:39 +0000
commite7cad7b0cbf88e2c0c5bf89957e60657561ffd70 (patch)
tree2d88ae4f0faeadd7796481f626364e81f116e956 /src/include/nodes
parentabd4bf13416e0dab832be4944d51de2f9e25f784 (diff)
downloadpostgresql-e7cad7b0cbf88e2c0c5bf89957e60657561ffd70.tar.gz
Add TRUNCATE command, with psql help and sgml additions.
Diffstat (limited to 'src/include/nodes')
-rw-r--r--src/include/nodes/nodes.h3
-rw-r--r--src/include/nodes/parsenodes.h12
2 files changed, 13 insertions, 2 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h
index 37f47c5306..da8a06af42 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.51 1999/08/16 02:17:39 tgl Exp $
+ * $Id: nodes.h,v 1.52 1999/09/23 17:03:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -151,6 +151,7 @@ typedef enum NodeTag
T_VersionStmt,
T_DefineStmt,
T_DestroyStmt,
+ T_TruncateStmt,
T_ExtendStmt,
T_FetchStmt,
T_IndexStmt,
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 5a1d07ec39..66c5a9132a 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.78 1999/08/21 03:49:09 tgl Exp $
+ * $Id: parsenodes.h,v 1.79 1999/09/23 17:03:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -283,6 +283,16 @@ typedef struct DestroyStmt
} DestroyStmt;
/* ----------------------
+ * Truncate Table Statement
+ * ----------------------
+ */
+typedef struct TruncateStmt
+{
+ NodeTag type;
+ char *relName; /* relation to be truncated */
+} TruncateStmt;
+
+/* ----------------------
* Extend Index Statement
* ----------------------
*/