PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
ExpandedObjectHeader * | DatumGetEOHP (Datum d) |
void | EOH_init_header (ExpandedObjectHeader *eohptr, const ExpandedObjectMethods *methods, MemoryContext obj_context) |
Size | EOH_get_flat_size (ExpandedObjectHeader *eohptr) |
void | EOH_flatten_into (ExpandedObjectHeader *eohptr, void *result, Size allocated_size) |
Datum | MakeExpandedObjectReadOnlyInternal (Datum d) |
Datum | TransferExpandedObject (Datum d, MemoryContext new_parent) |
void | DeleteExpandedObject (Datum d) |
ExpandedObjectHeader* DatumGetEOHP | ( | Datum | d | ) |
Definition at line 29 of file expandeddatum.c.
References Assert, DatumGetPointer(), varatt_expanded::eohptr, VARATT_IS_EXPANDED_HEADER, VARATT_IS_EXTERNAL_EXPANDED, and VARDATA_EXTERNAL.
Referenced by advance_windowaggregate(), advance_windowaggregate_base(), array_get_element_expanded(), coerce_function_result_tuple(), construct_empty_expanded_array(), datumCopy(), datumEstimateSpace(), DatumGetAnyArrayP(), DatumGetExpandedArray(), DatumGetExpandedArrayX(), DatumGetExpandedRecord(), datumSerialize(), DeleteExpandedObject(), detoast_external_attr(), exec_move_row_from_datum(), ExecAggCopyTransValue(), ExecEvalFieldSelect(), expand_array(), fill_val(), heap_compute_data_size(), MakeExpandedObjectReadOnlyInternal(), plpgsql_exec_trigger(), toast_datum_size(), toast_raw_datum_size(), TransferExpandedObject(), and tts_virtual_materialize().
void DeleteExpandedObject | ( | Datum | d | ) |
Definition at line 136 of file expandeddatum.c.
References Assert, DatumGetEOHP(), DatumGetPointer(), ExpandedObjectHeader::eoh_context, MemoryContextDelete(), and VARATT_IS_EXTERNAL_EXPANDED_RW.
Referenced by advance_windowaggregate(), advance_windowaggregate_base(), assign_record_var(), assign_simple_var(), exec_move_row(), and ExecAggCopyTransValue().
void EOH_flatten_into | ( | ExpandedObjectHeader * | eohptr, |
void * | result, | ||
Size | allocated_size | ||
) |
Definition at line 81 of file expandeddatum.c.
References ExpandedObjectHeader::eoh_methods, and ExpandedObjectMethods::flatten_into.
Referenced by coerce_function_result_tuple(), datumCopy(), datumSerialize(), detoast_external_attr(), fill_val(), and tts_virtual_materialize().
Size EOH_get_flat_size | ( | ExpandedObjectHeader * | eohptr | ) |
Definition at line 75 of file expandeddatum.c.
References ExpandedObjectHeader::eoh_methods, and ExpandedObjectMethods::get_flat_size.
Referenced by coerce_function_result_tuple(), datumCopy(), datumEstimateSpace(), datumSerialize(), detoast_external_attr(), fill_val(), heap_compute_data_size(), toast_datum_size(), toast_raw_datum_size(), and tts_virtual_materialize().
void EOH_init_header | ( | ExpandedObjectHeader * | eohptr, |
const ExpandedObjectMethods * | methods, | ||
MemoryContext | obj_context | ||
) |
Definition at line 48 of file expandeddatum.c.
References ExpandedObjectHeader::eoh_context, EOH_HEADER_MAGIC, ExpandedObjectHeader::eoh_methods, ExpandedObjectHeader::eoh_ro_ptr, ExpandedObjectHeader::eoh_rw_ptr, varatt_expanded::eohptr, SET_VARTAG_EXTERNAL, VARDATA_EXTERNAL, VARTAG_EXPANDED_RO, VARTAG_EXPANDED_RW, and ExpandedObjectHeader::vl_len_.
Referenced by build_dummy_expanded_header(), expand_array(), make_expanded_record_from_datum(), make_expanded_record_from_exprecord(), make_expanded_record_from_tupdesc(), and make_expanded_record_from_typeid().
Definition at line 95 of file expandeddatum.c.
References DatumGetEOHP(), DatumGetPointer(), EOHPGetRODatum(), and VARATT_IS_EXTERNAL_EXPANDED_RW.
Referenced by ExecInterpExpr().
Datum TransferExpandedObject | ( | Datum | d, |
MemoryContext | new_parent | ||
) |
Definition at line 118 of file expandeddatum.c.
References Assert, DatumGetEOHP(), DatumGetPointer(), ExpandedObjectHeader::eoh_context, EOHPGetRWDatum(), MemoryContextSetParent(), and VARATT_IS_EXTERNAL_EXPANDED_RW.
Referenced by datumTransfer(), and plpgsql_exec_function().