Re: JSON_AGG produces extra square brakets

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Davide S <swept(dot)along(dot)by(dot)events(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: JSON_AGG produces extra square brakets
Date: 2014-12-02 18:40:11
Message-ID: 7035.1417545611@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Davide S <swept(dot)along(dot)by(dot)events(at)gmail(dot)com> writes:
> This is a small testcase that reproduces the problem on my machine.

Ah, I see it: json_agg_finalfn is violating the rule that an aggregate
final function can't scribble on the aggregate state. Will fix, thanks
for the report!

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nelson Green 2014-12-02 18:40:37 Re: Programmatic access to interval units
Previous Message Davide S 2014-12-02 18:08:39 Re: JSON_AGG produces extra square brakets