diff options
author | Neil Conway <neilc@samurai.com> | 2005-04-06 23:56:07 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-04-06 23:56:07 +0000 |
commit | be2f825d51176bd21a627a529476f94de5bad4c2 (patch) | |
tree | 72f9ceb6d1da0fbb10dcfd7355e70b5797ce4b28 /src/backend/utils/adt/ruleutils.c | |
parent | a6bbfedcf7a899c91182f373f93f15f5af247647 (diff) | |
download | postgresql-be2f825d51176bd21a627a529476f94de5bad4c2.tar.gz postgresql-be2f825d51176bd21a627a529476f94de5bad4c2.zip |
Apply the "nodeAgg" optimization to more of the builtin transition
functions. This patch optimizes int2_sum(), int4_sum(), float4_accum()
and float8_accum() to avoid needing to copy the transition function's
state for each input tuple of the aggregate. In an extreme case
(e.g. SELECT sum(int2_col) FROM table where table has a single column),
it improves performance by about 20%. For more complex queries or tables
with wider rows, the relative performance improvement will not be as
significant.
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions