Re: BUG #15514: process fails on jsonb_populate_recordset query. see simple example below
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: 4321ip@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2018-11-22T20:21:20Z
Lists: pgsql-bugs
Haribabu Kommi <kommi.haribabu@gmail.com> writes: > Accessing of NULL pointer leads to crash. Attached quick simple patch fixes > the problem. While that stops the crash, it doesn't do what we want, which is to return a valid tupdesc. Without that you get "set-valued function called in context that cannot accept a set" errors. I think the right fix is to force a call of update_cached_tupdesc so that there always is a tupdesc to copy. regards, tom lane
Commits
-
Fix another crash in json{b}_populate_recordset and json{b}_to_recordset.
- eba2ce17121f 12.0 landed
- 595220a3a3a8 11.2 landed