Thank you!
Glad to have helped!
On Tue, Dec 2, 2014 at 7:40 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> 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
>