|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/detoast.h"#include "access/tupconvert.h"#include "executor/tstoreReceiver.h"#include "varatt.h"
Go to the source code of this file.
Data Structures | |
| struct | TStoreState |
Functions | |
| static bool | tstoreReceiveSlot_notoast (TupleTableSlot *slot, DestReceiver *self) |
| static bool | tstoreReceiveSlot_detoast (TupleTableSlot *slot, DestReceiver *self) |
| static bool | tstoreReceiveSlot_tupmap (TupleTableSlot *slot, DestReceiver *self) |
| static void | tstoreStartupReceiver (DestReceiver *self, int operation, TupleDesc typeinfo) |
| static void | tstoreShutdownReceiver (DestReceiver *self) |
| static void | tstoreDestroyReceiver (DestReceiver *self) |
| DestReceiver * | CreateTuplestoreDestReceiver (void) |
| void | SetTuplestoreDestReceiverParams (DestReceiver *self, Tuplestorestate *tStore, MemoryContext tContext, bool detoast, TupleDesc target_tupdesc, const char *map_failure_msg) |
| DestReceiver * CreateTuplestoreDestReceiver | ( | void | ) |
Definition at line 239 of file tstoreReceiver.c.
References DestTuplestore, _DestReceiver::mydest, palloc0(), TStoreState::pub, _DestReceiver::rDestroy, _DestReceiver::receiveSlot, _DestReceiver::rShutdown, _DestReceiver::rStartup, tstoreDestroyReceiver(), tstoreReceiveSlot_notoast(), tstoreShutdownReceiver(), and tstoreStartupReceiver().
Referenced by CreateDestReceiver().
| void SetTuplestoreDestReceiverParams | ( | DestReceiver * | self, |
| Tuplestorestate * | tStore, | ||
| MemoryContext | tContext, | ||
| bool | detoast, | ||
| TupleDesc | target_tupdesc, | ||
| const char * | map_failure_msg | ||
| ) |
Definition at line 267 of file tstoreReceiver.c.
References Assert(), TStoreState::cxt, DestTuplestore, TStoreState::detoast, TStoreState::map_failure_msg, _DestReceiver::mydest, TStoreState::pub, TStoreState::target_tupdesc, and TStoreState::tstore.
Referenced by exec_stmt_return_query(), FillPortalStore(), and PersistHoldablePortal().
|
static |
Definition at line 230 of file tstoreReceiver.c.
References pfree().
Referenced by CreateTuplestoreDestReceiver().
|
static |
Definition at line 137 of file tstoreReceiver.c.
References CompactAttribute::attisdropped, CompactAttribute::attlen, TStoreState::cxt, DatumGetPointer(), detoast_external_attr(), i, MemoryContextSwitchTo(), TupleDescData::natts, TStoreState::outvalues, pfree(), PointerGetDatum(), slot_getallattrs(), TStoreState::tofree, TStoreState::tstore, TupleTableSlot::tts_isnull, TupleTableSlot::tts_tupleDescriptor, TupleTableSlot::tts_values, TupleDescCompactAttr(), tuplestore_putvalues(), val, and VARATT_IS_EXTERNAL().
Referenced by tstoreStartupReceiver().
|
static |
Definition at line 123 of file tstoreReceiver.c.
References TStoreState::tstore, and tuplestore_puttupleslot().
Referenced by CreateTuplestoreDestReceiver(), and tstoreStartupReceiver().
|
static |
Definition at line 193 of file tstoreReceiver.c.
References TupleConversionMap::attrMap, execute_attr_map_slot(), TStoreState::mapslot, TStoreState::tstore, tuplestore_puttupleslot(), and TStoreState::tupmap.
Referenced by tstoreStartupReceiver().
|
static |
Definition at line 207 of file tstoreReceiver.c.
References ExecDropSingleTupleTableSlot(), free_conversion_map(), TStoreState::mapslot, TStoreState::outvalues, pfree(), TStoreState::tofree, and TStoreState::tupmap.
Referenced by CreateTuplestoreDestReceiver().
|
static |
Definition at line 57 of file tstoreReceiver.c.
References Assert(), CompactAttribute::attisdropped, CompactAttribute::attlen, convert_tuples_by_position(), TStoreState::cxt, TStoreState::detoast, i, MakeSingleTupleTableSlot(), TStoreState::map_failure_msg, TStoreState::mapslot, MemoryContextAlloc(), TupleDescData::natts, TStoreState::outvalues, TStoreState::pub, _DestReceiver::receiveSlot, TStoreState::target_tupdesc, TStoreState::tofree, tstoreReceiveSlot_detoast(), tstoreReceiveSlot_notoast(), tstoreReceiveSlot_tupmap(), TTSOpsVirtual, TupleDescCompactAttr(), and TStoreState::tupmap.
Referenced by CreateTuplestoreDestReceiver().