|
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_object, 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, DestTuplestore, and fb().
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, DatumGetPointer(), detoast_external_attr(), fb(), i, MemoryContextSwitchTo(), TupleDescData::natts, pfree(), PointerGetDatum(), slot_getallattrs(), 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 fb(), and tuplestore_puttupleslot().
Referenced by CreateTuplestoreDestReceiver(), and tstoreStartupReceiver().
|
static |
Definition at line 193 of file tstoreReceiver.c.
References execute_attr_map_slot(), fb(), and tuplestore_puttupleslot().
Referenced by tstoreStartupReceiver().
|
static |
Definition at line 207 of file tstoreReceiver.c.
References ExecDropSingleTupleTableSlot(), fb(), free_conversion_map(), and pfree().
Referenced by CreateTuplestoreDestReceiver().
|
static |
Definition at line 57 of file tstoreReceiver.c.
References Assert, CompactAttribute::attisdropped, CompactAttribute::attlen, convert_tuples_by_position(), fb(), i, MakeSingleTupleTableSlot(), MemoryContextAlloc(), tstoreReceiveSlot_detoast(), tstoreReceiveSlot_notoast(), tstoreReceiveSlot_tupmap(), TTSOpsVirtual, and TupleDescCompactAttr().
Referenced by CreateTuplestoreDestReceiver().