PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
tqueue.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * tqueue.h
4  * Use shm_mq to send & receive tuples between parallel backends
5  *
6  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/executor/tqueue.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 
14 #ifndef TQUEUE_H
15 #define TQUEUE_H
16 
17 #include "storage/shm_mq.h"
18 #include "tcop/dest.h"
19 
20 /* Opaque struct, only known inside tqueue.c. */
22 
23 /* Use this to send tuples to a shm_mq. */
25 
26 /* Use these to receive tuples from a shm_mq. */
29 extern void DestroyTupleQueueReader(TupleQueueReader *reader);
31  bool nowait, bool *done);
32 
33 #endif /* TQUEUE_H */
TupleQueueReader * CreateTupleQueueReader(shm_mq_handle *handle, TupleDesc tupledesc)
Definition: tqueue.c:633
TupleDesc tupledesc
Definition: tqueue.c:174
void DestroyTupleQueueReader(TupleQueueReader *reader)
Definition: tqueue.c:651
DestReceiver * CreateTupleQueueDestReceiver(shm_mq_handle *handle)
Definition: tqueue.c:606
HeapTuple TupleQueueReaderNext(TupleQueueReader *reader, bool nowait, bool *done)
Definition: tqueue.c:679