diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/executor/tqueue.h | 12 | ||||
-rw-r--r-- | src/include/nodes/execnodes.h | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/include/executor/tqueue.h b/src/include/executor/tqueue.h index 6f8eb73c9ae..6a668fa8a09 100644 --- a/src/include/executor/tqueue.h +++ b/src/include/executor/tqueue.h @@ -21,11 +21,11 @@ extern DestReceiver *CreateTupleQueueDestReceiver(shm_mq_handle *handle); /* Use these to receive tuples from a shm_mq. */ -typedef struct TupleQueueFunnel TupleQueueFunnel; -extern TupleQueueFunnel *CreateTupleQueueFunnel(void); -extern void DestroyTupleQueueFunnel(TupleQueueFunnel *funnel); -extern void RegisterTupleQueueOnFunnel(TupleQueueFunnel *, shm_mq_handle *); -extern HeapTuple TupleQueueFunnelNext(TupleQueueFunnel *, bool nowait, - bool *done); +typedef struct TupleQueueReader TupleQueueReader; +extern TupleQueueReader *CreateTupleQueueReader(shm_mq_handle *handle, + TupleDesc tupledesc); +extern void DestroyTupleQueueReader(TupleQueueReader *funnel); +extern HeapTuple TupleQueueReaderNext(TupleQueueReader *, + bool nowait, bool *done); #endif /* TQUEUE_H */ diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 939bc0ed734..58ec889b2f0 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -1963,7 +1963,9 @@ typedef struct GatherState PlanState ps; /* its first field is NodeTag */ bool initialized; struct ParallelExecutorInfo *pei; - struct TupleQueueFunnel *funnel; + int nreaders; + int nextreader; + struct TupleQueueReader **reader; TupleTableSlot *funnel_slot; bool need_to_scan_locally; } GatherState; |