PostgreSQL Source Code
git master
|
#include "access/attmap.h"
#include "access/htup.h"
#include "access/tupdesc.h"
#include "executor/tuptable.h"
#include "nodes/bitmapset.h"
Go to the source code of this file.
Data Structures | |
struct | TupleConversionMap |
Typedefs | |
typedef struct TupleConversionMap | TupleConversionMap |
Functions | |
TupleConversionMap * | convert_tuples_by_position (TupleDesc indesc, TupleDesc outdesc, const char *msg) |
TupleConversionMap * | convert_tuples_by_name (TupleDesc indesc, TupleDesc outdesc) |
TupleConversionMap * | convert_tuples_by_name_attrmap (TupleDesc indesc, TupleDesc outdesc, AttrMap *attrMap) |
HeapTuple | execute_attr_map_tuple (HeapTuple tuple, TupleConversionMap *map) |
TupleTableSlot * | execute_attr_map_slot (AttrMap *attrMap, TupleTableSlot *in_slot, TupleTableSlot *out_slot) |
Bitmapset * | execute_attr_map_cols (AttrMap *attrMap, Bitmapset *in_cols) |
void | free_conversion_map (TupleConversionMap *map) |
typedef struct TupleConversionMap TupleConversionMap |
TupleConversionMap* convert_tuples_by_name | ( | TupleDesc | indesc, |
TupleDesc | outdesc | ||
) |
Definition at line 102 of file tupconvert.c.
References build_attrmap_by_name_if_req(), and convert_tuples_by_name_attrmap().
Referenced by acquire_inherited_sample_rows(), apply_handle_tuple_routing(), ExecEvalConvertRowtype(), and ExecGetChildToRootMap().
TupleConversionMap* convert_tuples_by_name_attrmap | ( | TupleDesc | indesc, |
TupleDesc | outdesc, | ||
AttrMap * | attrMap | ||
) |
Definition at line 124 of file tupconvert.c.
References Assert, TupleConversionMap::attrMap, TupleConversionMap::indesc, TupleConversionMap::inisnull, TupleConversionMap::invalues, TupleDescData::natts, TupleConversionMap::outdesc, TupleConversionMap::outisnull, TupleConversionMap::outvalues, and palloc().
Referenced by convert_tuples_by_name(), and ExecGetRootToChildMap().
TupleConversionMap* convert_tuples_by_position | ( | TupleDesc | indesc, |
TupleDesc | outdesc, | ||
const char * | msg | ||
) |
Definition at line 59 of file tupconvert.c.
References TupleConversionMap::attrMap, build_attrmap_by_position(), TupleConversionMap::indesc, TupleConversionMap::inisnull, TupleConversionMap::invalues, TupleDescData::natts, TupleConversionMap::outdesc, TupleConversionMap::outisnull, TupleConversionMap::outvalues, and palloc().
Referenced by coerce_function_result_tuple(), exec_stmt_return_next(), plpgsql_exec_trigger(), and tstoreStartupReceiver().
Definition at line 252 of file tupconvert.c.
References AttrMap::attnums, bms_add_member(), bms_is_member(), FirstLowInvalidHeapAttributeNumber, and AttrMap::maplen.
Referenced by ExecGetInsertedCols(), and ExecGetUpdatedCols().
TupleTableSlot* execute_attr_map_slot | ( | AttrMap * | attrMap, |
TupleTableSlot * | in_slot, | ||
TupleTableSlot * | out_slot | ||
) |
Definition at line 192 of file tupconvert.c.
References Assert, AttrMap::attnums, ExecClearTuple(), ExecStoreVirtualTuple(), i, j, TupleDescData::natts, slot_getallattrs(), TupleTableSlot::tts_isnull, TupleTableSlot::tts_tupleDescriptor, and TupleTableSlot::tts_values.
Referenced by AfterTriggerExecute(), AfterTriggerSaveEvent(), apply_handle_tuple_routing(), CopyFrom(), ExecConstraints(), ExecCrossPartitionUpdate(), ExecFindPartition(), ExecPartitionCheckEmitError(), ExecPrepareTupleRouting(), ExecWithCheckOptions(), pgoutput_change(), TransitionTableAddTuple(), and tstoreReceiveSlot_tupmap().
HeapTuple execute_attr_map_tuple | ( | HeapTuple | tuple, |
TupleConversionMap * | map | ||
) |
Definition at line 154 of file tupconvert.c.
References Assert, AttrMap::attnums, TupleConversionMap::attrMap, heap_deform_tuple(), heap_form_tuple(), i, TupleConversionMap::indesc, TupleConversionMap::inisnull, TupleConversionMap::invalues, j, AttrMap::maplen, TupleDescData::natts, TupleConversionMap::outdesc, TupleConversionMap::outisnull, and TupleConversionMap::outvalues.
Referenced by acquire_inherited_sample_rows(), coerce_function_result_tuple(), exec_stmt_return_next(), ExecEvalConvertRowtype(), and plpgsql_exec_trigger().
void free_conversion_map | ( | TupleConversionMap * | map | ) |
Definition at line 299 of file tupconvert.c.
References TupleConversionMap::attrMap, free_attrmap(), TupleConversionMap::inisnull, TupleConversionMap::invalues, TupleConversionMap::outisnull, TupleConversionMap::outvalues, and pfree().
Referenced by acquire_inherited_sample_rows(), and tstoreShutdownReceiver().