Re: BUG #13514: PostgreSQL backend process crashes on jsonb_object_agg()

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, b(dot)yordanov2(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13514: PostgreSQL backend process crashes on jsonb_object_agg()
Date: 2015-07-23 18:07:20
Message-ID: 55B12D58.3000608@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-07-23 18:16:33 Re: BUG #13514: PostgreSQL backend process crashes on jsonb_object_agg()
Previous Message Sushant Sinha 2015-07-23 16:04:15 Re: BUG #13515: Much higher disk writes after postgres upgrade 9.4.3->9.4.4