aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1996-10-30 02:02:41 +0000
committerBruce Momjian <bruce@momjian.us>1996-10-30 02:02:41 +0000
commitf59a46a8c81caad3c47a3595bd1712658b7c1f25 (patch)
tree1281813811c918f065492ce385a0947346f24a15 /src/include
parent1dfe4eaeb1c5e3f823e71e32c88ec4794fee1dde (diff)
downloadpostgresql-f59a46a8c81caad3c47a3595bd1712658b7c1f25.tar.gz
postgresql-f59a46a8c81caad3c47a3595bd1712658b7c1f25.zip
Parser Overhaul
Diffstat (limited to 'src/include')
-rw-r--r--src/include/nodes/parsenodes.h5
-rw-r--r--src/include/parser/parse_state.h13
2 files changed, 10 insertions, 8 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 67556446606..61e20dc2be9 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.3 1996/10/19 04:49:29 scrappy Exp $
+ * $Id: parsenodes.h,v 1.4 1996/10/30 02:02:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -422,8 +422,7 @@ typedef struct AppendStmt {
NodeTag type;
char *relname; /* relation to insert into */
List *cols; /* names of the columns */
- List *exprs; /* the expressions (same order as
- the columns) */
+ List *targetList; /* the target list (of ResTarget) */
List *fromClause; /* the from clause */
Node *whereClause; /* qualifications */
} AppendStmt;
diff --git a/src/include/parser/parse_state.h b/src/include/parser/parse_state.h
index a897784c18d..4854cecca3f 100644
--- a/src/include/parser/parse_state.h
+++ b/src/include/parser/parse_state.h
@@ -4,7 +4,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_state.h,v 1.3 1996/10/13 17:13:58 momjian Exp $
+ * $Id: parse_state.h,v 1.4 1996/10/30 02:02:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -14,13 +14,16 @@
/* state information used during parse analysis */
typedef struct ParseState {
- int p_last_resno;
- List *p_target_resnos;
- Relation p_current_rel;
+ int p_last_resno;
List *p_rtable;
- int p_query_is_rule;
int p_numAgg;
List *p_aggs;
+ bool p_is_insert;
+ List *p_insert_columns;
+ bool p_is_update;
+ bool p_is_rule;
+ Relation p_target_relation;
+ RangeTblEntry *p_target_rangetblentry;
} ParseState;