PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | TQueueDestReceiver |
struct | TupleQueueReader |
Typedefs | |
typedef struct TQueueDestReceiver | TQueueDestReceiver |
Functions | |
static bool | tqueueReceiveSlot (TupleTableSlot *slot, DestReceiver *self) |
static void | tqueueStartupReceiver (DestReceiver *self, int operation, TupleDesc typeinfo) |
static void | tqueueShutdownReceiver (DestReceiver *self) |
static void | tqueueDestroyReceiver (DestReceiver *self) |
DestReceiver * | CreateTupleQueueDestReceiver (shm_mq_handle *handle) |
TupleQueueReader * | CreateTupleQueueReader (shm_mq_handle *handle) |
void | DestroyTupleQueueReader (TupleQueueReader *reader) |
MinimalTuple | TupleQueueReaderNext (TupleQueueReader *reader, bool nowait, bool *done) |
typedef struct TQueueDestReceiver TQueueDestReceiver |
DestReceiver* CreateTupleQueueDestReceiver | ( | shm_mq_handle * | handle | ) |
Definition at line 119 of file tqueue.c.
References DestTupleQueue, palloc0(), tqueueDestroyReceiver(), tqueueReceiveSlot(), tqueueShutdownReceiver(), and tqueueStartupReceiver().
Referenced by CreateDestReceiver(), and ExecParallelGetReceiver().
TupleQueueReader* CreateTupleQueueReader | ( | shm_mq_handle * | handle | ) |
Definition at line 139 of file tqueue.c.
References palloc0(), and TupleQueueReader::queue.
Referenced by ExecParallelCreateReaders().
void DestroyTupleQueueReader | ( | TupleQueueReader * | reader | ) |
|
static |
Definition at line 105 of file tqueue.c.
References pfree(), TQueueDestReceiver::queue, and shm_mq_detach().
Referenced by CreateTupleQueueDestReceiver().
|
static |
Definition at line 54 of file tqueue.c.
References ereport, errcode(), errmsg(), ERROR, ExecFetchSlotMinimalTuple(), pfree(), TQueueDestReceiver::queue, SHM_MQ_DETACHED, shm_mq_send(), SHM_MQ_SUCCESS, and MinimalTupleData::t_len.
Referenced by CreateTupleQueueDestReceiver().
|
static |
Definition at line 92 of file tqueue.c.
References TQueueDestReceiver::queue, and shm_mq_detach().
Referenced by CreateTupleQueueDestReceiver().
|
static |
Definition at line 83 of file tqueue.c.
Referenced by CreateTupleQueueDestReceiver().
MinimalTuple TupleQueueReaderNext | ( | TupleQueueReader * | reader, |
bool | nowait, | ||
bool * | done | ||
) |
Definition at line 176 of file tqueue.c.
References Assert, data, TupleQueueReader::queue, SHM_MQ_DETACHED, shm_mq_receive(), SHM_MQ_SUCCESS, SHM_MQ_WOULD_BLOCK, and MinimalTupleData::t_len.
Referenced by gather_readnext(), and gm_readnext_tuple().