73 (
errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
74 errmsg(
"could not send tuple to shared-memory queue")));
96 if (tqueue->
queue != NULL)
110 if (tqueue->
queue != NULL)
130 self->queue = handle;
143 reader->
queue = handle;
#define Assert(condition)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
MinimalTuple ExecFetchSlotMinimalTuple(TupleTableSlot *slot, bool *shouldFree)
MinimalTupleData * MinimalTuple
void pfree(void *pointer)
void * palloc0(Size size)
void shm_mq_detach(shm_mq_handle *mqh)
shm_mq_result shm_mq_receive(shm_mq_handle *mqh, Size *nbytesp, void **datap, bool nowait)
shm_mq_result shm_mq_send(shm_mq_handle *mqh, Size nbytes, const void *data, bool nowait, bool force_flush)
struct TQueueDestReceiver TQueueDestReceiver
TupleQueueReader * CreateTupleQueueReader(shm_mq_handle *handle)
static void tqueueStartupReceiver(DestReceiver *self, int operation, TupleDesc typeinfo)
DestReceiver * CreateTupleQueueDestReceiver(shm_mq_handle *handle)
static void tqueueShutdownReceiver(DestReceiver *self)
MinimalTuple TupleQueueReaderNext(TupleQueueReader *reader, bool nowait, bool *done)
static bool tqueueReceiveSlot(TupleTableSlot *slot, DestReceiver *self)
void DestroyTupleQueueReader(TupleQueueReader *reader)
static void tqueueDestroyReceiver(DestReceiver *self)