pull/648/merge
Önder Kalacı 2017-06-08 15:47:01 +00:00 committed by GitHub
commit c87b82fac2
1 changed files with 7 additions and 0 deletions

View File

@ -2665,6 +2665,13 @@ RouterQueryJob(Query *query, Task *task, List *placementList)
job->requiresMasterEvaluation = requiresMasterEvaluation;
job->deferredPruning = deferredPruning;
/*
* Router query jobs do not require jobQuery's target list. Setting it to NIL
* enables us not to serialize/de-serialize while the query is passed to the
* executor. This improves planning times significantly.
*/
job->jobQuery->targetList = NIL;
return job;
}