MCPcopy Create free account
hub / github.com/apache/cloudberry / CreateTupleQueueDestReceiver

Function CreateTupleQueueDestReceiver

src/backend/executor/tqueue.c:118–133  ·  view source on GitHub ↗

* Create a DestReceiver that writes tuples to a tuple queue. */

Source from the content-addressed store, hash-verified

116 * Create a DestReceiver that writes tuples to a tuple queue.
117 */
118DestReceiver *
119CreateTupleQueueDestReceiver(shm_mq_handle *handle)
120{
121 TQueueDestReceiver *self;
122
123 self = (TQueueDestReceiver *) palloc0(sizeof(TQueueDestReceiver));
124
125 self->pub.receiveSlot = tqueueReceiveSlot;
126 self->pub.rStartup = tqueueStartupReceiver;
127 self->pub.rShutdown = tqueueShutdownReceiver;
128 self->pub.rDestroy = tqueueDestroyReceiver;
129 self->pub.mydest = DestTupleQueue;
130 self->queue = handle;
131
132 return (DestReceiver *) self;
133}
134
135/*
136 * Create a tuple queue reader.

Callers 3

CreateDestReceiverFunction · 0.85
SetupEndpointExecStateFunction · 0.85
ExecParallelGetReceiverFunction · 0.85

Calls 1

palloc0Function · 0.50

Tested by

no test coverage detected