Re: [HACKERS] BUG #10728: json_to_recordset with nested json objects NULLs columns

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, matti(dot)hameister(at)technologygroup(dot)de, pgsql-bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] BUG #10728: json_to_recordset with nested json objects NULLs columns
Date: 2014-06-25 04:25:53
Message-ID: 75169.1403670353@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Andrew Dunstan <andrew(at)dunslane(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bekoe, Evans Akai 2014-06-25 10:09:50 Fwd: Type Ownership-change vs. Grant/Revoke: Grantors not updated with Ownership Changes
Previous Message Tom Lane 2014-06-25 00:01:00 Re: [HACKERS] BUG #10728: json_to_recordset with nested json objects NULLs columns

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-06-25 04:27:57 Re: makeAndExpr(), etc. confined to gram.y?
Previous Message Amit Langote 2014-06-25 04:14:42 makeAndExpr(), etc. confined to gram.y?