Skip site navigation (1) Skip section navigation (2)

pgsql: Apply the "nodeAgg" optimization to more of the builtin

From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Apply the "nodeAgg" optimization to more of the builtin
Date: 2005-04-06 23:56:07
Message-ID: (view raw or whole thread)
Lists: pgsql-committers
Log Message:
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

Modified Files:
        float.c (r1.113 -> r1.114)
        numeric.c (r1.82 -> r1.83)

pgsql-committers by date

Next:From: Neil ConwayDate: 2005-04-07 01:51:42
Subject: pgsql: Add a "USING" clause to DELETE, which is equivalent to the FROM
Previous:From: Tom LaneDate: 2005-04-06 20:13:49
Subject: pgsql: Remove test for NULL node in ExecProcNode().

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group