• Tom Lane's avatar
    Tweak planner and executor to avoid doing ExecProject() in table scan · 4cff59d8
    Tom Lane authored
    nodes where it's not really necessary.  In many cases where the scan node
    is not the topmost plan node (eg, joins, aggregation), it's possible to
    just return the table tuple directly instead of generating an intermediate
    projection tuple.  In preliminary testing, this reduced the CPU time
    needed for 'SELECT COUNT(*) FROM foo' by about 10%.
    4cff59d8
nodeTidscan.c 11.6 KB