PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/detoast.h"
#include "access/tupconvert.h"
#include "executor/tstoreReceiver.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 238 of file tstoreReceiver.c.
References DestTuplestore, palloc0(), 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 266 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 229 of file tstoreReceiver.c.
References pfree().
Referenced by CreateTuplestoreDestReceiver().
|
static |
Definition at line 136 of file tstoreReceiver.c.
References 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, TupleDescAttr, tuplestore_putvalues(), val, and VARATT_IS_EXTERNAL.
Referenced by tstoreStartupReceiver().
|
static |
Definition at line 122 of file tstoreReceiver.c.
References TStoreState::tstore, and tuplestore_puttupleslot().
Referenced by CreateTuplestoreDestReceiver(), and tstoreStartupReceiver().
|
static |
Definition at line 192 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 206 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 56 of file tstoreReceiver.c.
References Assert, 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, TupleDescAttr, and TStoreState::tupmap.
Referenced by CreateTuplestoreDestReceiver().