From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: b.yordanov2@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13514: PostgreSQL backend process crashes on jsonb_object_agg()
Date: Thu, 23 Jul 2015 14:07:20 -0400
Message-ID: <55B12D58.3000608@dunslane.net> (raw)
In-Reply-To: <26929.1437621293@sss.pgh.pa.us>
References: <20150722143933.9710.39668@wrigleys.postgresql.org>
<26929.1437621293@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 07/22/2015 11:14 PM, Tom Lane wrote:
> b.yordanov2@gmail.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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us, b.yordanov2@gmail.com
Subject: Re: BUG #13514: PostgreSQL backend process crashes on jsonb_object_agg()
In-Reply-To: <55B12D58.3000608@dunslane.net>
References: <20150722143933.9710.39668@wrigleys.postgresql.org> <26929.1437621293@sss.pgh.pa.us> <55B12D58.3000608@dunslane.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox