OSDN Git Service

Refactor ExecProject and associated routines so that fast-path code is used
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Apr 2009 22:39:30 +0000 (22:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Apr 2009 22:39:30 +0000 (22:39 +0000)
commit85369f888ec9af8ed573c589b7d6fe28015a6cb6
tree8fffcb58938c6803b8389765fcf58a43204e0cad
parent0e550ff6174ebe8bab15b1218fa336e484513a61
Refactor ExecProject and associated routines so that fast-path code is used
for simple Var targetlist entries all the time, even when there are other
entries that are not simple Vars.  Also, ensure that we prefetch attributes
(with slot_getsomeattrs) for all Vars in the targetlist, even those buried
within expressions.  In combination these changes seem to significantly
reduce the runtime for cases where tlists are mostly but not exclusively
Vars.  Per my proposal of yesterday.
src/backend/executor/execQual.c
src/backend/executor/execUtils.c
src/include/nodes/execnodes.h