PostgreSQL Source Code git master
|
#include "nodes/pathnodes.h"
Go to the source code of this file.
Functions | |
void | expand_inherited_rtentry (PlannerInfo *root, RelOptInfo *rel, RangeTblEntry *rte, Index rti) |
Bitmapset * | get_rel_all_updated_cols (PlannerInfo *root, RelOptInfo *rel) |
bool | apply_child_basequals (PlannerInfo *root, RelOptInfo *parentrel, RelOptInfo *childrel, RangeTblEntry *childRTE, AppendRelInfo *appinfo) |
bool apply_child_basequals | ( | PlannerInfo * | root, |
RelOptInfo * | parentrel, | ||
RelOptInfo * | childrel, | ||
RangeTblEntry * | childRTE, | ||
AppendRelInfo * | appinfo | ||
) |
Definition at line 843 of file inherit.c.
References adjust_appendrel_attrs(), Assert, RelOptInfo::baserestrict_min_security, RelOptInfo::baserestrictinfo, RestrictInfo::clause, contain_vars_of_level(), contain_volatile_functions(), DatumGetBool(), eval_const_expressions(), RestrictInfo::has_clone, RestrictInfo::is_clone, RestrictInfo::is_pushed_down, IsA, lappend(), lfirst, make_ands_implicit(), make_restrictinfo(), Min, NIL, restriction_is_always_false(), restriction_is_always_true(), root, and RestrictInfo::security_level.
Referenced by build_simple_rel().
void expand_inherited_rtentry | ( | PlannerInfo * | root, |
RelOptInfo * | rel, | ||
RangeTblEntry * | rte, | ||
Index | rti | ||
) |
Definition at line 86 of file inherit.c.
References add_vars_to_targetlist(), PlanRowMark::allMarkTypes, Assert, bms_make_singleton(), build_simple_rel(), expand_appendrel_subquery(), expand_partitioned_rtentry(), expand_planner_arrays(), expand_single_inheritance_child(), find_all_inheritors(), get_plan_rowmark(), getRTEPermissionInfo(), RangeTblEntry::inh, InvalidOid, PlanRowMark::isParent, lappend(), lfirst_oid, linitial_oid, list_length(), makeTargetEntry(), makeVar(), makeWholeRowVar(), NIL, NoLock, planner_rt_fetch, pstrdup(), RelationData::rd_rel, RELATION_IS_OTHER_TEMP, RangeTblEntry::relid, root, ROW_MARK_COPY, PlanRowMark::rowmarkId, RTE_RELATION, RTE_SUBQUERY, RangeTblEntry::rtekind, PlanRowMark::rti, SelfItemPointerAttributeNumber, snprintf, table_close(), table_open(), TableOidAttributeNumber, and RTEPermissionInfo::updatedCols.
Referenced by add_other_rels_to_query(), and expand_appendrel_subquery().
Bitmapset * get_rel_all_updated_cols | ( | PlannerInfo * | root, |
RelOptInfo * | rel | ||
) |
Definition at line 657 of file inherit.c.
References Assert, bms_union(), CMD_UPDATE, find_base_rel(), get_dependent_generated_columns(), getRTEPermissionInfo(), IS_OTHER_REL, IS_SIMPLE_REL, planner_rt_fetch, RelOptInfo::relid, root, translate_col_privs_multilevel(), and RTEPermissionInfo::updatedCols.
Referenced by postgresPlanForeignModify().