From: Tom Lane <tgl@sss.pgh.pa.us>
To: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: 4321ip@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15514: process fails on jsonb_populate_recordset query. see simple example below
Date: Thu, 22 Nov 2018 15:21:20 -0500
Message-ID: <6764.1542918080@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJrrPGeUJFmXwv=gZgh==MpbS+VU50+esAUHc=zC6eoWDH3RMA@mail.gmail.com>
References: <15514-59d5b4c4065b178b@postgresql.org>
<CAJrrPGeUJFmXwv=gZgh==MpbS+VU50+esAUHc=zC6eoWDH3RMA@mail.gmail.com>
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
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, kommi.haribabu@gmail.com, 4321ip@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15514: process fails on jsonb_populate_recordset query. see simple example below
In-Reply-To: <6764.1542918080@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