aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execParallel.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2017-09-14 19:59:02 -0700
committerAndres Freund <andres@anarazel.de>2017-09-14 19:59:29 -0700
commit6b65a7fe62e129d5c2b85cd74d6a91d8f7564608 (patch)
treefd6c870bc69de7637fb60e859b67260f1257c40d /src/backend/executor/execParallel.c
parentcc5f81366c36b3dd8f02bd9be1cf75b2cc8482bd (diff)
downloadpostgresql-6b65a7fe62e129d5c2b85cd74d6a91d8f7564608.tar.gz
postgresql-6b65a7fe62e129d5c2b85cd74d6a91d8f7564608.zip
Remove TupleDesc remapping logic from tqueue.c.
With the introduction of a shared memory record typmod registry, it is no longer necessary to remap record typmods when sending tuples between backends so most of tqueue.c can be removed. Author: Thomas Munro Reviewed-By: Andres Freund Discussion: https://postgr.es/m/CAEepm=0ZtQ-SpsgCyzzYpsXS6e=kZWqk3g5Ygn3MDV7A8dabUA@mail.gmail.com
Diffstat (limited to 'src/backend/executor/execParallel.c')
-rw-r--r--src/backend/executor/execParallel.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/executor/execParallel.c b/src/backend/executor/execParallel.c
index 8737cc1ceff..5dc26ed17ab 100644
--- a/src/backend/executor/execParallel.c
+++ b/src/backend/executor/execParallel.c
@@ -608,14 +608,12 @@ ExecInitParallelPlan(PlanState *planstate, EState *estate, int nworkers,
/*
* Set up tuple queue readers to read the results of a parallel subplan.
- * All the workers are expected to return tuples matching tupDesc.
*
* This is separate from ExecInitParallelPlan() because we can launch the
* worker processes and let them start doing something before we do this.
*/
void
-ExecParallelCreateReaders(ParallelExecutorInfo *pei,
- TupleDesc tupDesc)
+ExecParallelCreateReaders(ParallelExecutorInfo *pei)
{
int nworkers = pei->pcxt->nworkers_launched;
int i;
@@ -631,8 +629,7 @@ ExecParallelCreateReaders(ParallelExecutorInfo *pei,
{
shm_mq_set_handle(pei->tqueue[i],
pei->pcxt->worker[i].bgwhandle);
- pei->reader[i] = CreateTupleQueueReader(pei->tqueue[i],
- tupDesc);
+ pei->reader[i] = CreateTupleQueueReader(pei->tqueue[i]);
}
}
}