1/*-------------------------------------------------------------------------
4 * Routines to access various components and subcomponents of
8 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/include/parser/parsetree.h
13 *-------------------------------------------------------------------------
22 * range table operations
29 * NB: this will crash and burn if handed an out-of-range RT index
31 #define rt_fetch(rangetable_index, rangetable) \
32 ((RangeTblEntry *) list_nth(rangetable, (rangetable_index)-1))
35 * Given an RTE and an attribute number, return the appropriate
36 * variable name or alias for that attribute of that RTE.
41 * Check whether an attribute of an RTE has been dropped
48 * target list operations
55 * FOR UPDATE/SHARE info
61#endif /* PARSETREE_H */
RowMarkClause * get_parse_rowmark(Query *qry, Index rtindex)
char * get_rte_attribute_name(RangeTblEntry *rte, AttrNumber attnum)
TargetEntry * get_tle_by_resno(List *tlist, AttrNumber resno)
bool get_rte_attribute_is_dropped(RangeTblEntry *rte, AttrNumber attnum)