Re: Review: listagg aggregate

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Review: listagg aggregate
Дата
Msg-id 603c8f071001261015g3b5433b0rae899762c2ca4469@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Review: listagg aggregate  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Review: listagg aggregate  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Jan 26, 2010 at 12:36 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "David E. Wheeler" <david@kineticode.com> writes:
>> Because it's an aggregate that cocatenates values. It's not an
>> aggregate that lists things. I also like concat_agg better than
>> string_agg because it's not limited to acting on strings.
>
> But what it *produces* is a string.  For comparison, the
> SQL-standard-specified array_agg produces arrays, but what it
> acts on isn't an array.

This point is well-taken, but naming it string_agg() because it
produces a string doesn't seem quite descriptive enough.  We might
someday (if we don't already) have a number of aggregates that produce
an output that is a string; we can't name them all by the output type.

...Robert


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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Review: listagg aggregate
Следующее
От: David Fetter
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Remove tabs in SGML.