Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIKug-000726-KO for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Jul 2015 18:08:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZIKug-0004vU-6D for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Jul 2015 18:08:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIKu3-0003WN-D5 for pgsql-bugs@postgresql.org; Thu, 23 Jul 2015 18:07:31 +0000 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZIKu0-0007X6-AP for pgsql-bugs@postgresql.org; Thu, 23 Jul 2015 18:07:29 +0000 Received: from mfilter27-d.gandi.net (mfilter27-d.gandi.net [217.70.178.155]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id A76E0172077; Thu, 23 Jul 2015 20:07:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter27-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter27-d.gandi.net (mfilter27-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id fAlZT82U2DJd; Thu, 23 Jul 2015 20:07:22 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id E6BA2172080; Thu, 23 Jul 2015 20:07:21 +0200 (CEST) Message-ID: <55B12D58.3000608@dunslane.net> Date: Thu, 23 Jul 2015 14:07:20 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Tom Lane , b.yordanov2@gmail.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #13514: PostgreSQL backend process crashes on jsonb_object_agg() References: <20150722143933.9710.39668@wrigleys.postgresql.org> <26929.1437621293@sss.pgh.pa.us> In-Reply-To: <26929.1437621293@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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