PostgreSQL Source Code
git master
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-2024, 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. */
21
typedef
struct
TupleQueueReader
TupleQueueReader
;
22
23
/* Use this to send tuples to a shm_mq. */
24
extern
DestReceiver
*
CreateTupleQueueDestReceiver
(
shm_mq_handle
*handle);
25
26
/* Use these to receive tuples from a shm_mq. */
27
extern
TupleQueueReader
*
CreateTupleQueueReader
(
shm_mq_handle
*handle);
28
extern
void
DestroyTupleQueueReader
(
TupleQueueReader
*reader);
29
extern
MinimalTuple
TupleQueueReaderNext
(
TupleQueueReader
*reader,
30
bool
nowait,
bool
*done);
31
32
#endif
/* TQUEUE_H */
dest.h
shm_mq.h
MinimalTupleData
Definition:
htup_details.h:625
TupleQueueReader
Definition:
tqueue.c:44
_DestReceiver
Definition:
dest.h:116
shm_mq_handle
Definition:
shm_mq.c:138
CreateTupleQueueReader
TupleQueueReader * CreateTupleQueueReader(shm_mq_handle *handle)
Definition:
tqueue.c:139
CreateTupleQueueDestReceiver
DestReceiver * CreateTupleQueueDestReceiver(shm_mq_handle *handle)
Definition:
tqueue.c:119
TupleQueueReaderNext
MinimalTuple TupleQueueReaderNext(TupleQueueReader *reader, bool nowait, bool *done)
Definition:
tqueue.c:176
DestroyTupleQueueReader
void DestroyTupleQueueReader(TupleQueueReader *reader)
Definition:
tqueue.c:155
src
include
executor
tqueue.h
Generated on Wed Sep 18 2024 06:13:25 for PostgreSQL Source Code by
1.9.1