CREATE AGGREGATE array_cat

Поиск
Список
Период
Сортировка
От Vlad Bokov
Тема CREATE AGGREGATE array_cat
Дата
Msg-id 89b89b20-27ea-8079-d3c0-3127d7f68ec4@razum2um.me
обсуждение исходный текст
Ответы Re: CREATE AGGREGATE array_cat
Список pgsql-hackers
Hi, I wonder why there's no function to aggregate arrays by
concatenation out of the box?

There is a usual function `array_cat(anyarray, anyarray)`, but it
doesn't seamlessly work with grouping.

Wouldn't it be natural to have this:

CREATE AGGREGATE array_cat (anyarray)
(
    sfunc = array_cat,
    stype = anyarray,
    initcond = '{}'
);

Thanks,
Vlad





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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: remove spurious CREATE INDEX CONCURRENTLY wait
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: pl/pgsql feature request: shorthand for argument and local variable references