Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzemV-0001xM-Bl for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jun 2014 04:25:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzemU-0007w5-SK for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jun 2014 04:25:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzemU-0007vv-86; Wed, 25 Jun 2014 04:25:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzemP-0006VX-CW; Wed, 25 Jun 2014 04:25:55 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s5P4PntG029156; Wed, 25 Jun 2014 00:25:49 -0400 From: Tom Lane To: Andrew Dunstan cc: Michael Paquier , matti.hameister@technologygroup.de, pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] BUG #10728: json_to_recordset with nested json objects NULLs columns In-reply-to: <53A8C780.2070701@dunslane.net> References: <20140622153409.2618.90346@wrigleys.postgresql.org> <16858.1403538180@sss.pgh.pa.us> <53A8877F.7060208@dunslane.net> <17766.1403566448@sss.pgh.pa.us> <53A8C780.2070701@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Mon, 23 Jun 2014 20:34:08 -0400" Date: Tue, 24 Jun 2014 21:25:53 -0700 Message-ID: <75169.1403670353@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Andrew Dunstan writes: >>> I currently don't have lots of time to devote to this, sadly, but >>> Michael's patch looks like a good minimal fix. > This problem is also manifest in json_populate_recordset, which also > uses the function in question, and is in 9.3: I've pushed this patch back through 9.3, along with a fix to ensure that json_populate_record destroys the hashtable it creates. I want to do some more work on this code, but this much is indubitably a bug fix. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs