On 07/22/2015 11:14 PM, Tom Lane wrote:
> b(dot)yordanov2(at)gmail(dot)com writes:
>> jsonb_object_agg() appears to fail when the second argument (in this case
>> attributes->z->'tt') is a nonexistent jsonb column (there is
>> attributes->z->'t' but not 'tt').
> Seems to be failure to handle nulls properly. The attached patch stops
> the crash for me, but I've not checked to see if the results are "right",
> nor scouted around to see if there are similar bugs nearby.
>
>
I think there is possibly a bit more work to do w.r.t. nulls. I will
check on it.
cheers
andrew