Re: [GENERAL] CREATE AGGREGATE on jsonb concat

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] CREATE AGGREGATE on jsonb concat
Дата
Msg-id 27317.1499370813@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [GENERAL] CREATE AGGREGATE on jsonb concat  (Seamus Abshere <seamus@abshere.net>)
Ответы Re: [GENERAL] CREATE AGGREGATE on jsonb concat
Список pgsql-general
Seamus Abshere <seamus@abshere.net> writes:
> We do this in our database:

> CREATE AGGREGATE jsonb_collect(jsonb) (
>     SFUNC = 'jsonb_concat',
>     STYPE = jsonb,
>     INITCOND = '{}'
> );

> Is there some other built-in aggregate I'm missing that would do the
> same thing? It just feels like such an obvious feature.

Doesn't jsonb_agg() do exactly that?

            regards, tom lane


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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: [GENERAL] huge RAM use in multi-command ALTER of table heirarchy
Следующее
От: Seamus Abshere
Дата:
Сообщение: Re: [GENERAL] CREATE AGGREGATE on jsonb concat