[GENERAL] CREATE AGGREGATE on jsonb concat

Поиск
Список
Период
Сортировка
От Seamus Abshere
Тема [GENERAL] CREATE AGGREGATE on jsonb concat
Дата
Msg-id 1499360350.649531.1032553256.0FC3CB3B@webmail.messagingengine.com
обсуждение исходный текст
Ответы Re: [GENERAL] CREATE AGGREGATE on jsonb concat
Список pgsql-general
hi,

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.

Thanks for your advice,
Seamus

--
Seamus Abshere, SCEA
https://github.com/seamusabshere
https://linkedin.com/in/seamusabshere
https://www.faraday.io


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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Renaming Raster Table
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] Renaming Raster Table