Re: Speed of user-defined aggregates using array_append as transfn

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Speed of user-defined aggregates using array_append as transfn
Date: 2016-10-28 19:14:17
Message-ID: 12587.1477682057@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> My initial admittedly ugly thought was why not have a second append
> function that doesn't use expanded arrays?

That won't get us out of the O(N^2) behavior. Also I don't see what's
better about it than my suggestion of making array_append itself do
that when called as an aggregate function.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2016-10-28 19:33:41 Re: Speed of user-defined aggregates using array_append as transfn
Previous Message Andrew Dunstan 2016-10-28 19:00:56 Re: Speed of user-defined aggregates using array_append as transfn