pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: matti.hameister@technologygroup.de
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] BUG #10728: json_to_recordset with nested json objects NULLs columns
Date: Tue, 24 Jun 2014 21:25:53 -0700
Message-ID: <75169.1403670353@sss.pgh.pa.us> (raw)
In-Reply-To: <53A8C780.2070701@dunslane.net>
References: <20140622153409.2618.90346@wrigleys.postgresql.org>
	<CAB7nPqQ2hLVt3o-d8-5=h5MEfPr1sS9jT4CK0GpQXew8PeY=yw@mail.gmail.com>
	<CAB7nPqS0b=1DEKPWTQgzB0L3iV-ZQxTdffnqpc2Qp8_F1U2-6A@mail.gmail.com>
	<CAB7nPqTP1m5H=kNsm6mmv-5f7A99O7AP2X6E9ubb4ShZWq-COQ@mail.gmail.com>
	<16858.1403538180@sss.pgh.pa.us>
	<53A8877F.7060208@dunslane.net>
	<17766.1403566448@sss.pgh.pa.us>
	<53A8C780.2070701@dunslane.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andrew Dunstan <andrew@dunslane.net> 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



view thread (18+ messages)  latest in thread

Message-ID: <75169.1403670353@sss.pgh.pa.us>
Permalink:  ../75169.1403670353@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/75169.1403670353@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, andrew@dunslane.net, michael.paquier@gmail.com, matti.hameister@technologygroup.de, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] BUG #10728: json_to_recordset with nested json objects NULLs columns
  In-Reply-To: <75169.1403670353@sss.pgh.pa.us>
  References: <20140622153409.2618.90346@wrigleys.postgresql.org> <CAB7nPqQ2hLVt3o-d8-5=h5MEfPr1sS9jT4CK0GpQXew8PeY=yw@mail.gmail.com> <CAB7nPqS0b=1DEKPWTQgzB0L3iV-ZQxTdffnqpc2Qp8_F1U2-6A@mail.gmail.com> <CAB7nPqTP1m5H=kNsm6mmv-5f7A99O7AP2X6E9ubb4ShZWq-COQ@mail.gmail.com> <16858.1403538180@sss.pgh.pa.us> <53A8877F.7060208@dunslane.net> <17766.1403566448@sss.pgh.pa.us> <53A8C780.2070701@dunslane.net> <75169.1403670353@sss.pgh.pa.us>

* 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