diff options
| author | Robert Haas | 2017-11-25 15:49:17 +0000 |
|---|---|---|
| committer | Robert Haas | 2017-11-25 15:49:17 +0000 |
| commit | b10967eddf964f8c0a11060cf3f366bbdd1235f6 (patch) | |
| tree | 71c573073d45393095a2a2386999ae430b234b63 /src/include/executor/executor.h | |
| parent | 0f2458ff5f970cade04313f1a10fe01d02f888b7 (diff) | |
Avoid projecting tuples unnecessarily in Gather and Gather Merge.
It's most often the case that the target list for the Gather (Merge)
node matches the target list supplied by the underlying plan node;
when this is so, we can avoid the overhead of projecting.
This depends on commit f455e1125e2588d4cd4fc663c6a10da4e003a3b5 for
proper functioning.
Idea by Andres Freund. Patch by me. Review by Amit Kapila.
Discussion: http://postgr.es/m/CA+TgmoZ0ZL=cesZFq8c9NnfK6bqy-wwUd3_74iYGodYrSoQ7Fw@mail.gmail.com
Diffstat (limited to 'src/include/executor/executor.h')
| -rw-r--r-- | src/include/executor/executor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index bee4ebf2693..b5578f5855f 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -485,6 +485,8 @@ extern void ExecAssignResultTypeFromTL(PlanState *planstate); extern TupleDesc ExecGetResultType(PlanState *planstate); extern void ExecAssignProjectionInfo(PlanState *planstate, TupleDesc inputDesc); +extern void ExecConditionalAssignProjectionInfo(PlanState *planstate, + TupleDesc inputDesc, Index varno); extern void ExecFreeExprContext(PlanState *planstate); extern void ExecAssignScanType(ScanState *scanstate, TupleDesc tupDesc); extern void ExecAssignScanTypeFromOuterPlan(ScanState *scanstate); |
