Re: array_agg and array_accum (patch)

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: array_agg and array_accum (patch)
Дата
Msg-id 1225433955.1375.136.camel@jdavis
обсуждение исходный текст
Ответ на Re: array_agg and array_accum (patch)  ("Robert Haas" <robertmhaas@gmail.com>)
Ответы Re: array_agg and array_accum (patch)  (Sam Mason <sam@samason.me.uk>)
Список pgsql-hackers
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:

http://www.postgresql.org/docs/8.3/static/xaggr.html

Your function returns NULL on no input, which seems more like
array_agg().

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().

Regards,Jeff Davis




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: can we create a record of more than one field?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: BufferAccessStrategy for bulk insert