On Wed, 2008-10-29 at 00:08 -0400, Robert Haas wrote:
> It's worth noting that this is the third version of this idea that has
> been submitted. Ian Caulfield submitted a patch to add this, and so
> did I. Someone should probably look at all three of them and compare.
If we include a function named array_accum(), it should return an empty
array on no input to match the function in the docs:
Your function returns NULL on no input, which seems more like
Aside from that, I'm pretty open to anything, as long as one of our
patches makes it. If there are potential problems with the standard
(where we don't want to implement a violation), we should just do
array_accum(). If not, we might as well do the standard array_agg(),
perhaps without the ORDER BY clause.
We could also do both, because it is a little annoying to coalesce the
result or array_agg().
In response to
pgsql-hackers by date
|Next:||From: Simon Riggs||Date: 2008-10-31 06:33:02|
|Subject: Re: BufferAccessStrategy for bulk insert|
|Previous:||From: Tom Lane||Date: 2008-10-31 05:29:05|
|Subject: Re: can we create a record of more than one field? |