PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | AttrMap |
Typedefs | |
typedef struct AttrMap | AttrMap |
Functions | |
AttrMap * | make_attrmap (int maplen) |
void | free_attrmap (AttrMap *map) |
AttrMap * | build_attrmap_by_name (TupleDesc indesc, TupleDesc outdesc, bool missing_ok) |
AttrMap * | build_attrmap_by_name_if_req (TupleDesc indesc, TupleDesc outdesc, bool missing_ok) |
AttrMap * | build_attrmap_by_position (TupleDesc indesc, TupleDesc outdesc, const char *msg) |
Definition at line 177 of file attmap.c.
References attname, AttrMap::attnums, ereport, errcode(), errdetail(), errmsg(), ERROR, format_type_be(), i, j, make_attrmap(), NameStr, TupleDescData::natts, TupleDescData::tdtypeid, and TupleDescAttr.
Referenced by addFkRecurseReferencing(), ATExecAttachPartitionIdx(), ATPrepAlterColumnType(), AttachPartitionEnsureIndexes(), build_attrmap_by_name_if_req(), CloneFkReferenced(), CloneFkReferencing(), DefineIndex(), DefineRelation(), ExecInitPartitionInfo(), expandTableLikeClause(), map_partition_varattnos(), MergeConstraintsIntoExisting(), and RemoveInheritance().
Definition at line 263 of file attmap.c.
References build_attrmap_by_name(), check_attrmap_match(), and free_attrmap().
Referenced by addFkRecurseReferenced(), convert_tuples_by_name(), ExecConstraints(), ExecGetRootToChildMap(), ExecInitPartitionDispatchInfo(), ExecPartitionCheckEmitError(), ExecWithCheckOptions(), and init_tuple_slot().
Definition at line 75 of file attmap.c.
References _, AttrMap::attnums, check_attrmap_match(), ereport, errcode(), errdetail(), errmsg_internal(), ERROR, format_type_with_typemod(), free_attrmap(), i, j, make_attrmap(), TupleDescData::natts, and TupleDescAttr.
Referenced by convert_tuples_by_position().
void free_attrmap | ( | AttrMap * | map | ) |
Definition at line 56 of file attmap.c.
References AttrMap::attnums, and pfree().
Referenced by addFkRecurseReferenced(), ATExecAttachPartitionIdx(), build_attrmap_by_name_if_req(), build_attrmap_by_position(), DefineIndex(), free_conversion_map(), get_rel_sync_entry(), logicalrep_partition_open(), logicalrep_rel_open(), logicalrep_relmap_free_entry(), and MergeAttributes().
AttrMap* make_attrmap | ( | int | maplen | ) |
Definition at line 40 of file attmap.c.
References palloc0(), and res.
Referenced by build_attrmap_by_name(), build_attrmap_by_position(), logicalrep_partition_open(), logicalrep_rel_open(), and MergeAttributes().