aboutsummaryrefslogtreecommitdiff
path: root/src/include/parser/parse_state.h
blob: c2f900e81f31bd2660e9b57ce47b6a52994f5a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*-------------------------------------------------------------------------
 *
 * parse_state.h--
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 * $Id: parse_state.h,v 1.5 1996/11/04 12:12:52 scrappy Exp $
 *
 *-------------------------------------------------------------------------
 */

#ifndef PARSE_STATE_H
#define PARSE_STATE_H

#include <nodes/parsenodes.h> 
#include <utils/rel.h>

/* state information used during parse analysis */
typedef struct ParseState {
    int 	p_last_resno;
    List 	*p_rtable;
    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;


#endif /*PARSE_QUERY_H*/