mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
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
This commit is contained in:
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user