Re: CREATE AGGREGATE on jsonb concat

From: Seamus Abshere <seamus(at)abshere(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: CREATE AGGREGATE on jsonb concat
Date: 2017-07-10 16:52:12
Message-ID: 1499705532.364570.1036230184.62905891@webmail.messagingengine.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Seamus Abshere <seamus(at)abshere(dot)net> writes:

> That aggregates into an array. Our `jsonb_collect` aggregates into an object.

Postgres 9.6 has (per
https://www.postgresql.org/docs/9.6/static/functions-aggregate.html)

* jsonb_agg(expression)
* jsonb_object_agg(name, value)

In retrospect, I think what I am proposing is:

* jsonb_object_agg(expression)

Is that sane?

Best,
Seamus

In response to

Browse pgsql-general by date

  From Date Subject
Next Message rihad 2017-07-10 18:10:12 Re: Changing collate & ctype for an existing database
Previous Message Tom Lane 2017-07-10 16:42:00 Re: Changing collate & ctype for an existing database