On fre, 2012-03-30 at 22:59 -0700, Hitoshi Harada wrote:
> I don't know exactly how PL/Proxy or pgpool accomplish the multi-phase
> aggregate,
They don't.
> but in theory the proposal above is state-merge function,
> so it doesn't apply to general aggregate results that passed through
> the final function. Of course some functions that don't have final
> functions are ok to call state-merge function on the results.
You're right, it's not quite the same thing. But perhaps it could be
kept in mind if someone wants to develop things in this area.