PostgreSQL Source Code
git master
|
#include "nodes/parsenodes.h"
Go to the source code of this file.
Macros | |
#define | rt_fetch(rangetable_index, rangetable) ((RangeTblEntry *) list_nth(rangetable, (rangetable_index)-1)) |
Functions | |
char * | get_rte_attribute_name (RangeTblEntry *rte, AttrNumber attnum) |
bool | get_rte_attribute_is_dropped (RangeTblEntry *rte, AttrNumber attnum) |
TargetEntry * | get_tle_by_resno (List *tlist, AttrNumber resno) |
RowMarkClause * | get_parse_rowmark (Query *qry, Index rtindex) |
#define rt_fetch | ( | rangetable_index, | |
rangetable | |||
) | ((RangeTblEntry *) list_nth(rangetable, (rangetable_index)-1)) |
Definition at line 31 of file parsetree.h.
RowMarkClause* get_parse_rowmark | ( | Query * | qry, |
Index | rtindex | ||
) |
Definition at line 3534 of file parse_relation.c.
References lfirst, Query::rowMarks, and RowMarkClause::rti.
Referenced by AcquireRewriteLocks(), applyLockingClause(), and ApplyRetrieveRule().
bool get_rte_attribute_is_dropped | ( | RangeTblEntry * | rte, |
AttrNumber | attnum | ||
) |
Definition at line 3365 of file parse_relation.c.
References Assert, attnum, elog, ereport, errcode(), errmsg(), ERROR, RangeTblFunction::funcexpr, RangeTblEntry::funcordinality, RangeTblEntry::functions, get_expr_result_tupdesc(), GETSTRUCT, HeapTupleIsValid, Int16GetDatum(), lfirst, list_length(), list_nth(), list_nth_oid(), NIL, ObjectIdGetDatum(), OidIsValid, ReleaseSysCache(), RangeTblEntry::relid, RTE_CTE, RTE_FUNCTION, RTE_GROUP, RTE_JOIN, RTE_NAMEDTUPLESTORE, RTE_RELATION, RTE_RESULT, RTE_SUBQUERY, RTE_TABLEFUNC, RTE_VALUES, RangeTblEntry::rtekind, SearchSysCache2(), and TupleDescAttr.
Referenced by AcquireRewriteLocks().
char* get_rte_attribute_name | ( | RangeTblEntry * | rte, |
AttrNumber | attnum | ||
) |
Definition at line 3327 of file parse_relation.c.
References attnum, elog, ERROR, get_attname(), InvalidAttrNumber, list_length(), list_nth(), RangeTblEntry::relid, RTE_RELATION, RangeTblEntry::rtekind, and strVal.
Referenced by get_name_for_var_field(), get_variable(), print_expr(), and substitute_grouped_columns_mutator().
TargetEntry* get_tle_by_resno | ( | List * | tlist, |
AttrNumber | resno | ||
) |
Definition at line 3514 of file parse_relation.c.
References lfirst, and TargetEntry::resno.
Referenced by adjust_view_column_set(), count_rowexpr_columns(), create_unique_plan(), currtid_for_view(), examine_simple_variable(), expandRecordVariable(), get_name_for_var_field(), get_variable(), make_sort_from_groupcols(), markTargetListOrigin(), prepare_sort_from_pathkeys(), pullup_replace_vars_callback(), ReplaceVarsFromTargetList_callback(), resolve_special_varno(), rewriteTargetView(), show_grouping_set_keys(), and show_sort_group_keys().