2010/9/1 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> "David E. Wheeler" <david(at)kineticode(dot)com> writes:
>> On Sep 1, 2010, at 11:09 AM, Pavel Stehule wrote:
>>> Then you can eliminate NULLs with simple function
>> Kind of defeats the purpose of the efficiency of the aggregate.
> Well, you can build your own version of array_agg with the same
> implementation, except you mark the transition function as strict ...
I am checking this now, and it is not possible - it needs a some
initial value and there isn't possible to set a "internal" value.
probably some C coding is necessary.
> regards, tom lane
In response to
pgsql-hackers by date
|Next:||From: Jeff Davis||Date: 2010-09-01 18:32:50|
|Subject: compiling with RELCACHE_FORCE_RELEASE doesn't pass regression|
|Previous:||From: Tom Lane||Date: 2010-09-01 18:25:51|
|Subject: Re: array_agg() NULL Handling |