PostgreSQL Source Code git master
Loading...
Searching...
No Matches
parse_node.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * parse_node.h
4 * Internal definitions for parser
5 *
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/parser/parse_node.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef PARSE_NODE_H
15#define PARSE_NODE_H
16
17#include "nodes/parsenodes.h"
19#include "utils/relcache.h"
20
21
22/* Forward references for some structs declared below */
23typedef struct ParseState ParseState;
26
27/*
28 * Expression kinds distinguished by transformExpr(). Many of these are not
29 * semantically distinct so far as expression transformation goes; rather,
30 * we distinguish them so that context-specific error messages can be printed.
31 *
32 * Note: EXPR_KIND_OTHER is not used in the core code, but is left for use
33 * by extension code that might need to call transformExpr(). The core code
34 * will not enforce any context-driven restrictions on EXPR_KIND_OTHER
35 * expressions, so the caller would have to check for sub-selects, aggregates,
36 * window functions, SRFs, etc if those need to be disallowed.
37 */
38typedef enum ParseExprKind
39{
40 EXPR_KIND_NONE = 0, /* "not in an expression" */
41 EXPR_KIND_OTHER, /* reserved for extensions */
42 EXPR_KIND_JOIN_ON, /* JOIN ON */
43 EXPR_KIND_JOIN_USING, /* JOIN USING */
44 EXPR_KIND_FROM_SUBSELECT, /* sub-SELECT in FROM clause */
45 EXPR_KIND_FROM_FUNCTION, /* function in FROM clause */
46 EXPR_KIND_WHERE, /* WHERE */
47 EXPR_KIND_HAVING, /* HAVING */
48 EXPR_KIND_FILTER, /* FILTER */
49 EXPR_KIND_WINDOW_PARTITION, /* window definition PARTITION BY */
50 EXPR_KIND_WINDOW_ORDER, /* window definition ORDER BY */
51 EXPR_KIND_WINDOW_FRAME_RANGE, /* window frame clause with RANGE */
52 EXPR_KIND_WINDOW_FRAME_ROWS, /* window frame clause with ROWS */
53 EXPR_KIND_WINDOW_FRAME_GROUPS, /* window frame clause with GROUPS */
54 EXPR_KIND_SELECT_TARGET, /* SELECT target list item */
55 EXPR_KIND_INSERT_TARGET, /* INSERT target list item */
56 EXPR_KIND_UPDATE_SOURCE, /* UPDATE assignment source item */
57 EXPR_KIND_UPDATE_TARGET, /* UPDATE assignment target item */
58 EXPR_KIND_MERGE_WHEN, /* MERGE WHEN [NOT] MATCHED condition */
59 EXPR_KIND_GROUP_BY, /* GROUP BY */
60 EXPR_KIND_ORDER_BY, /* ORDER BY */
61 EXPR_KIND_DISTINCT_ON, /* DISTINCT ON */
62 EXPR_KIND_LIMIT, /* LIMIT */
63 EXPR_KIND_OFFSET, /* OFFSET */
64 EXPR_KIND_RETURNING, /* RETURNING in INSERT/UPDATE/DELETE */
65 EXPR_KIND_MERGE_RETURNING, /* RETURNING in MERGE */
66 EXPR_KIND_VALUES, /* VALUES */
67 EXPR_KIND_VALUES_SINGLE, /* single-row VALUES (in INSERT only) */
68 EXPR_KIND_CHECK_CONSTRAINT, /* CHECK constraint for a table */
69 EXPR_KIND_DOMAIN_CHECK, /* CHECK constraint for a domain */
70 EXPR_KIND_COLUMN_DEFAULT, /* default value for a table column */
71 EXPR_KIND_FUNCTION_DEFAULT, /* default parameter value for function */
72 EXPR_KIND_INDEX_EXPRESSION, /* index expression */
73 EXPR_KIND_INDEX_PREDICATE, /* index predicate */
74 EXPR_KIND_STATS_EXPRESSION, /* extended statistics expression */
75 EXPR_KIND_ALTER_COL_TRANSFORM, /* transform expr in ALTER COLUMN TYPE */
76 EXPR_KIND_EXECUTE_PARAMETER, /* parameter value in EXECUTE */
77 EXPR_KIND_TRIGGER_WHEN, /* WHEN condition in CREATE TRIGGER */
78 EXPR_KIND_POLICY, /* USING or WITH CHECK expr in policy */
79 EXPR_KIND_PARTITION_BOUND, /* partition bound expression */
80 EXPR_KIND_PARTITION_EXPRESSION, /* PARTITION BY expression */
81 EXPR_KIND_CALL_ARGUMENT, /* procedure argument in CALL */
82 EXPR_KIND_COPY_WHERE, /* WHERE condition in COPY FROM */
83 EXPR_KIND_GENERATED_COLUMN, /* generation expression for a column */
84 EXPR_KIND_CYCLE_MARK, /* cycle mark value */
85 EXPR_KIND_PROPGRAPH_PROPERTY, /* derived property expression */
87
88
89/*
90 * Function signatures for parser hooks
91 */
92typedef Node *(*PreParseColumnRefHook) (ParseState *pstate, ColumnRef *cref);
93typedef Node *(*PostParseColumnRefHook) (ParseState *pstate, ColumnRef *cref, Node *var);
94typedef Node *(*ParseParamRefHook) (ParseState *pstate, ParamRef *pref);
95typedef Node *(*CoerceParamHook) (ParseState *pstate, Param *param,
97 int location);
98
99/*
100 * Namespace for the GRAPH_TABLE reference being transformed.
101 *
102 * Labels, properties and variables used in the GRAPH_TABLE form the namespace.
103 * The names of the labels and properties used in GRAPH_TABLE are looked up using
104 * the OID of the property graph. Variables are collected in a list as graph
105 * patterns are transformed. This namespace is used to resolve label and property
106 * references in the GRAPH_TABLE.
107 */
109{
110 Oid graphid; /* OID of the graph being referenced */
111 List *variables; /* list of element pattern variables in
112 * GRAPH_TABLE */
114
115/*
116 * State information used during parse analysis
117 *
118 * parentParseState: NULL in a top-level ParseState. When parsing a subquery,
119 * links to current parse state of outer query.
120 *
121 * p_sourcetext: source string that generated the raw parsetree being
122 * analyzed, or NULL if not available. (The string is used only to
123 * generate cursor positions in error messages: we need it to convert
124 * byte-wise locations in parse structures to character-wise cursor
125 * positions.)
126 *
127 * p_rtable: list of RTEs that will become the rangetable of the query.
128 * Note that neither relname nor refname of these entries are necessarily
129 * unique; searching the rtable by name is a bad idea.
130 *
131 * p_rteperminfos: list of RTEPermissionInfo containing an entry corresponding
132 * to each RTE_RELATION entry in p_rtable.
133 *
134 * p_joinexprs: list of JoinExpr nodes associated with p_rtable entries.
135 * This is one-for-one with p_rtable, but contains NULLs for non-join
136 * RTEs, and may be shorter than p_rtable if the last RTE(s) aren't joins.
137 *
138 * p_nullingrels: list of Bitmapsets associated with p_rtable entries, each
139 * containing the set of outer-join RTE indexes that can null that relation
140 * at the current point in the parse tree. This is one-for-one with p_rtable,
141 * but may be shorter than p_rtable, in which case the missing entries are
142 * implicitly empty (NULL). That rule allows us to save work when the query
143 * contains no outer joins.
144 *
145 * p_joinlist: list of join items (RangeTblRef and JoinExpr nodes) that
146 * will become the fromlist of the query's top-level FromExpr node.
147 *
148 * p_namespace: list of ParseNamespaceItems that represents the current
149 * namespace for table and column lookup. (The RTEs listed here may be just
150 * a subset of the whole rtable. See ParseNamespaceItem comments below.)
151 *
152 * p_lateral_active: true if we are currently parsing a LATERAL subexpression
153 * of this parse level. This makes p_lateral_only namespace items visible,
154 * whereas they are not visible when p_lateral_active is FALSE.
155 *
156 * p_ctenamespace: list of CommonTableExprs (WITH items) that are visible
157 * at the moment. This is entirely different from p_namespace because a CTE
158 * is not an RTE, rather "visibility" means you could make an RTE from it.
159 *
160 * p_future_ctes: list of CommonTableExprs (WITH items) that are not yet
161 * visible due to scope rules. This is used to help improve error messages.
162 *
163 * p_parent_cte: CommonTableExpr that immediately contains the current query,
164 * if any.
165 *
166 * p_target_relation: target relation, if query is INSERT/UPDATE/DELETE/MERGE
167 *
168 * p_target_nsitem: target relation's ParseNamespaceItem.
169 *
170 * p_grouping_nsitem: the ParseNamespaceItem that represents the grouping step.
171 *
172 * p_windowdefs: list of WindowDefs representing WINDOW and OVER clauses.
173 * We collect these while transforming expressions and then transform them
174 * afterwards (so that any resjunk tlist items needed for the sort/group
175 * clauses end up at the end of the query tlist). A WindowDef's location in
176 * this list, counting from 1, is the winref number to use to reference it.
177 *
178 * p_expr_kind: kind of expression we're currently parsing, as per enum above;
179 * EXPR_KIND_NONE when not in an expression.
180 *
181 * p_next_resno: next TargetEntry.resno to assign, starting from 1.
182 *
183 * p_multiassign_exprs: partially-processed MultiAssignRef source expressions.
184 *
185 * p_locking_clause: query's FOR UPDATE/FOR SHARE clause, if any.
186 *
187 * p_locked_from_parent: true if parent query level applies FOR UPDATE/SHARE
188 * to this subquery as a whole.
189 *
190 * p_resolve_unknowns: resolve unknown-type SELECT output columns as type TEXT
191 * (this is true by default).
192 *
193 * p_graph_table_pstate: Namespace for the GRAPH_TABLE reference being
194 * transformed, if any.
195 *
196 * p_hasAggs, p_hasWindowFuncs, etc: true if we've found any of the indicated
197 * constructs in the query.
198 *
199 * p_last_srf: the set-returning FuncExpr or OpExpr most recently found in
200 * the query, or NULL if none.
201 *
202 * p_pre_columnref_hook, etc: optional parser hook functions for modifying the
203 * interpretation of ColumnRefs and ParamRefs.
204 *
205 * p_ref_hook_state: passthrough state for the parser hook functions.
206 */
208{
209 ParseState *parentParseState; /* stack link */
210 const char *p_sourcetext; /* source text, or NULL if not available */
211 List *p_rtable; /* range table so far */
212 List *p_rteperminfos; /* list of RTEPermissionInfo nodes for each
213 * RTE_RELATION entry in rtable */
214 List *p_joinexprs; /* JoinExprs for RTE_JOIN p_rtable entries */
215 List *p_nullingrels; /* Bitmapsets showing nulling outer joins */
216 List *p_joinlist; /* join items so far (will become FromExpr
217 * node's fromlist) */
218 List *p_namespace; /* currently-referenceable RTEs (List of
219 * ParseNamespaceItem) */
220 bool p_lateral_active; /* p_lateral_only items visible? */
221 List *p_ctenamespace; /* current namespace for common table exprs */
222 List *p_future_ctes; /* common table exprs not yet in namespace */
223 CommonTableExpr *p_parent_cte; /* this query's containing CTE */
224 Relation p_target_relation; /* INSERT/UPDATE/DELETE/MERGE target rel */
225 ParseNamespaceItem *p_target_nsitem; /* target rel's NSItem, or NULL */
226 ParseNamespaceItem *p_grouping_nsitem; /* NSItem for grouping, or NULL */
227 List *p_windowdefs; /* raw representations of window clauses */
228 ParseExprKind p_expr_kind; /* what kind of expression we're parsing */
229 int p_next_resno; /* next targetlist resno to assign */
230 List *p_multiassign_exprs; /* junk tlist entries for multiassign */
231 List *p_locking_clause; /* raw FOR UPDATE/FOR SHARE info */
232 bool p_locked_from_parent; /* parent has marked this subquery
233 * with FOR UPDATE/FOR SHARE */
234 bool p_resolve_unknowns; /* resolve unknown-type SELECT outputs as
235 * type text */
236
237 QueryEnvironment *p_queryEnv; /* curr env, incl refs to enclosing env */
239 * namespace, if any */
240
241 /* Flags telling about things found in the query: */
247
248 Node *p_last_srf; /* most recent set-returning func/op found */
249
250 /*
251 * Optional hook functions for parser callbacks. These are null unless
252 * set up by the caller of make_parsestate.
253 */
258 void *p_ref_hook_state; /* common passthrough link for above */
259};
260
261/*
262 * An element of a namespace list.
263 *
264 * p_names contains the table name and column names exposed by this nsitem.
265 * (Typically it's equal to p_rte->eref, but for a JOIN USING alias it's
266 * equal to p_rte->join_using_alias. Since the USING columns will be the
267 * join's first N columns, the net effect is just that we expose only those
268 * join columns via this nsitem.)
269 *
270 * p_rte and p_rtindex link to the underlying rangetable entry, and
271 * p_perminfo to the entry in rteperminfos.
272 *
273 * The p_nscolumns array contains info showing how to construct Vars
274 * referencing the names appearing in the p_names->colnames list.
275 *
276 * Namespace items with p_rel_visible set define which RTEs are accessible by
277 * qualified names, while those with p_cols_visible set define which RTEs are
278 * accessible by unqualified names. These sets are different because a JOIN
279 * without an alias does not hide the contained tables (so they must be
280 * visible for qualified references) but it does hide their columns
281 * (unqualified references to the columns refer to the JOIN, not the member
282 * tables, so we must not complain that such a reference is ambiguous).
283 * Conversely, a subquery without an alias does not hide the columns selected
284 * by the subquery, but it does hide the auto-generated relation name (so the
285 * subquery columns are visible for unqualified references only). Various
286 * special RTEs such as NEW/OLD for rules may also appear with only one flag
287 * set.
288 *
289 * While processing the FROM clause, namespace items may appear with
290 * p_lateral_only set, meaning they are visible only to LATERAL
291 * subexpressions. (The pstate's p_lateral_active flag tells whether we are
292 * inside such a subexpression at the moment.) If p_lateral_ok is not set,
293 * it's an error to actually use such a namespace item. One might think it
294 * would be better to just exclude such items from visibility, but the wording
295 * of SQL:2008 requires us to do it this way. We also use p_lateral_ok to
296 * forbid LATERAL references to an UPDATE/DELETE target table.
297 *
298 * While processing the RETURNING clause, special namespace items are added to
299 * refer to the OLD and NEW state of the result relation. These namespace
300 * items have p_returning_type set appropriately, for use when creating Vars.
301 * For convenience, this information is duplicated on each namespace column.
302 *
303 * At no time should a namespace list contain two entries that conflict
304 * according to the rules in checkNameSpaceConflicts; but note that those
305 * are more complicated than "must have different alias names", so in practice
306 * code searching a namespace list has to check for ambiguous references.
307 */
309{
310 Alias *p_names; /* Table and column names */
311 RangeTblEntry *p_rte; /* The relation's rangetable entry */
312 int p_rtindex; /* The relation's index in the rangetable */
313 RTEPermissionInfo *p_perminfo; /* The relation's rteperminfos entry */
314 /* array of same length as p_names->colnames: */
315 ParseNamespaceColumn *p_nscolumns; /* per-column data */
316 bool p_rel_visible; /* Relation name is visible? */
317 bool p_cols_visible; /* Column names visible as unqualified refs? */
318 bool p_lateral_only; /* Is only visible to LATERAL expressions? */
319 bool p_lateral_ok; /* If so, does join type allow use? */
320 VarReturningType p_returning_type; /* Is OLD/NEW for use in RETURNING? */
321};
322
323/*
324 * Data about one column of a ParseNamespaceItem.
325 *
326 * We track the info needed to construct a Var referencing the column
327 * (but only for user-defined columns; system column references and
328 * whole-row references are handled separately).
329 *
330 * p_varno and p_varattno identify the semantic referent, which is a
331 * base-relation column unless the reference is to a join USING column that
332 * isn't semantically equivalent to either join input column (because it is a
333 * FULL join or the input column requires a type coercion). In those cases
334 * p_varno and p_varattno refer to the JOIN RTE.
335 *
336 * p_varnosyn and p_varattnosyn are either identical to p_varno/p_varattno,
337 * or they specify the column's position in an aliased JOIN RTE that hides
338 * the semantic referent RTE's refname. (That could be either the JOIN RTE
339 * in which this ParseNamespaceColumn entry exists, or some lower join level.)
340 *
341 * If an RTE contains a dropped column, its ParseNamespaceColumn struct
342 * is all-zeroes. (Conventionally, test for p_varno == 0 to detect this.)
343 */
345{
346 Index p_varno; /* rangetable index */
347 AttrNumber p_varattno; /* attribute number of the column */
348 Oid p_vartype; /* pg_type OID */
349 int32 p_vartypmod; /* type modifier value */
350 Oid p_varcollid; /* OID of collation, or InvalidOid */
351 VarReturningType p_varreturningtype; /* for RETURNING OLD/NEW */
352 Index p_varnosyn; /* rangetable index of syntactic referent */
353 AttrNumber p_varattnosyn; /* attribute number of syntactic referent */
354 bool p_dontexpand; /* not included in star expansion */
355};
356
357/* Support for parser_errposition_callback function */
364
365
366extern ParseState *make_parsestate(ParseState *parentParseState);
367extern void free_parsestate(ParseState *pstate);
368extern int parser_errposition(ParseState *pstate, int location);
369
371 ParseState *pstate, int location);
373
375
380 List *indirection,
381 bool isAssignment);
382extern Const *make_const(ParseState *pstate, A_Const *aconst);
383
384#endif /* PARSE_NODE_H */
int16 AttrNumber
Definition attnum.h:21
int32_t int32
Definition c.h:614
unsigned int Index
Definition c.h:700
void cancel_parser_errposition_callback(ParseCallbackState *pcbstate)
Definition parse_node.c:156
void free_parsestate(ParseState *pstate)
Definition parse_node.c:72
Node *(* PostParseColumnRefHook)(ParseState *pstate, ColumnRef *cref, Node *var)
Definition parse_node.h:93
Node *(* PreParseColumnRefHook)(ParseState *pstate, ColumnRef *cref)
Definition parse_node.h:92
int parser_errposition(ParseState *pstate, int location)
Definition parse_node.c:106
SubscriptingRef * transformContainerSubscripts(ParseState *pstate, Node *containerBase, Oid containerType, int32 containerTypMod, List *indirection, bool isAssignment)
Definition parse_node.c:243
void setup_parser_errposition_callback(ParseCallbackState *pcbstate, ParseState *pstate, int location)
Definition parse_node.c:140
Node *(* ParseParamRefHook)(ParseState *pstate, ParamRef *pref)
Definition parse_node.h:94
ParseExprKind
Definition parse_node.h:39
@ EXPR_KIND_EXECUTE_PARAMETER
Definition parse_node.h:76
@ EXPR_KIND_DOMAIN_CHECK
Definition parse_node.h:69
@ EXPR_KIND_COPY_WHERE
Definition parse_node.h:82
@ EXPR_KIND_COLUMN_DEFAULT
Definition parse_node.h:70
@ EXPR_KIND_DISTINCT_ON
Definition parse_node.h:61
@ EXPR_KIND_MERGE_WHEN
Definition parse_node.h:58
@ EXPR_KIND_STATS_EXPRESSION
Definition parse_node.h:74
@ EXPR_KIND_INDEX_EXPRESSION
Definition parse_node.h:72
@ EXPR_KIND_MERGE_RETURNING
Definition parse_node.h:65
@ EXPR_KIND_PROPGRAPH_PROPERTY
Definition parse_node.h:85
@ EXPR_KIND_PARTITION_BOUND
Definition parse_node.h:79
@ EXPR_KIND_FUNCTION_DEFAULT
Definition parse_node.h:71
@ EXPR_KIND_WINDOW_FRAME_RANGE
Definition parse_node.h:51
@ EXPR_KIND_VALUES
Definition parse_node.h:66
@ EXPR_KIND_FROM_SUBSELECT
Definition parse_node.h:44
@ EXPR_KIND_POLICY
Definition parse_node.h:78
@ EXPR_KIND_WINDOW_FRAME_GROUPS
Definition parse_node.h:53
@ EXPR_KIND_PARTITION_EXPRESSION
Definition parse_node.h:80
@ EXPR_KIND_JOIN_USING
Definition parse_node.h:43
@ EXPR_KIND_INDEX_PREDICATE
Definition parse_node.h:73
@ EXPR_KIND_ORDER_BY
Definition parse_node.h:60
@ EXPR_KIND_OFFSET
Definition parse_node.h:63
@ EXPR_KIND_JOIN_ON
Definition parse_node.h:42
@ EXPR_KIND_HAVING
Definition parse_node.h:47
@ EXPR_KIND_INSERT_TARGET
Definition parse_node.h:55
@ EXPR_KIND_ALTER_COL_TRANSFORM
Definition parse_node.h:75
@ EXPR_KIND_LIMIT
Definition parse_node.h:62
@ EXPR_KIND_WHERE
Definition parse_node.h:46
@ EXPR_KIND_UPDATE_TARGET
Definition parse_node.h:57
@ EXPR_KIND_SELECT_TARGET
Definition parse_node.h:54
@ EXPR_KIND_RETURNING
Definition parse_node.h:64
@ EXPR_KIND_GENERATED_COLUMN
Definition parse_node.h:83
@ EXPR_KIND_NONE
Definition parse_node.h:40
@ EXPR_KIND_CALL_ARGUMENT
Definition parse_node.h:81
@ EXPR_KIND_GROUP_BY
Definition parse_node.h:59
@ EXPR_KIND_OTHER
Definition parse_node.h:41
@ EXPR_KIND_FROM_FUNCTION
Definition parse_node.h:45
@ EXPR_KIND_TRIGGER_WHEN
Definition parse_node.h:77
@ EXPR_KIND_FILTER
Definition parse_node.h:48
@ EXPR_KIND_UPDATE_SOURCE
Definition parse_node.h:56
@ EXPR_KIND_CHECK_CONSTRAINT
Definition parse_node.h:68
@ EXPR_KIND_WINDOW_PARTITION
Definition parse_node.h:49
@ EXPR_KIND_CYCLE_MARK
Definition parse_node.h:84
@ EXPR_KIND_WINDOW_FRAME_ROWS
Definition parse_node.h:52
@ EXPR_KIND_WINDOW_ORDER
Definition parse_node.h:50
@ EXPR_KIND_VALUES_SINGLE
Definition parse_node.h:67
Const * make_const(ParseState *pstate, A_Const *aconst)
Definition parse_node.c:347
void transformContainerType(Oid *containerType, int32 *containerTypmod)
Definition parse_node.c:189
ParseState * make_parsestate(ParseState *parentParseState)
Definition parse_node.c:39
Node *(* CoerceParamHook)(ParseState *pstate, Param *param, Oid targetTypeId, int32 targetTypeMod, int location)
Definition parse_node.h:95
unsigned int Oid
static int fb(int x)
VarReturningType
Definition primnodes.h:256
Definition pg_list.h:54
Definition nodes.h:135
ErrorContextCallback errcallback
Definition parse_node.h:362
ParseState * pstate
Definition parse_node.h:360
VarReturningType p_varreturningtype
Definition parse_node.h:351
AttrNumber p_varattno
Definition parse_node.h:347
AttrNumber p_varattnosyn
Definition parse_node.h:353
RangeTblEntry * p_rte
Definition parse_node.h:311
ParseNamespaceColumn * p_nscolumns
Definition parse_node.h:315
RTEPermissionInfo * p_perminfo
Definition parse_node.h:313
VarReturningType p_returning_type
Definition parse_node.h:320
bool p_hasTargetSRFs
Definition parse_node.h:244
ParseState * parentParseState
Definition parse_node.h:209
void * p_ref_hook_state
Definition parse_node.h:258
List * p_ctenamespace
Definition parse_node.h:221
bool p_hasWindowFuncs
Definition parse_node.h:243
ParseNamespaceItem * p_target_nsitem
Definition parse_node.h:225
ParseNamespaceItem * p_grouping_nsitem
Definition parse_node.h:226
ParseExprKind p_expr_kind
Definition parse_node.h:228
List * p_multiassign_exprs
Definition parse_node.h:230
bool p_locked_from_parent
Definition parse_node.h:232
ParseParamRefHook p_paramref_hook
Definition parse_node.h:256
PreParseColumnRefHook p_pre_columnref_hook
Definition parse_node.h:254
List * p_nullingrels
Definition parse_node.h:215
List * p_namespace
Definition parse_node.h:218
QueryEnvironment * p_queryEnv
Definition parse_node.h:237
const char * p_sourcetext
Definition parse_node.h:210
List * p_windowdefs
Definition parse_node.h:227
bool p_resolve_unknowns
Definition parse_node.h:234
int p_next_resno
Definition parse_node.h:229
bool p_hasModifyingCTE
Definition parse_node.h:246
List * p_rteperminfos
Definition parse_node.h:212
List * p_joinexprs
Definition parse_node.h:214
Relation p_target_relation
Definition parse_node.h:224
CommonTableExpr * p_parent_cte
Definition parse_node.h:223
List * p_future_ctes
Definition parse_node.h:222
bool p_hasSubLinks
Definition parse_node.h:245
Node * p_last_srf
Definition parse_node.h:248
GraphTableParseState * p_graph_table_pstate
Definition parse_node.h:238
List * p_joinlist
Definition parse_node.h:216
CoerceParamHook p_coerce_param_hook
Definition parse_node.h:257
PostParseColumnRefHook p_post_columnref_hook
Definition parse_node.h:255
List * p_locking_clause
Definition parse_node.h:231
bool p_lateral_active
Definition parse_node.h:220
List * p_rtable
Definition parse_node.h:211
bool p_hasAggs
Definition parse_node.h:242