Re: BUG #15514: process fails on jsonb_populate_recordset query. seesimple example below

Поиск
Список
Период
Сортировка
От Haribabu Kommi
Тема Re: BUG #15514: process fails on jsonb_populate_recordset query. seesimple example below
Дата
Msg-id CAJrrPGcVrGTnnCkB2wn+0KRLHNXAqNwbXwaVYOPzqW6gY2BBfQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #15514: process fails on jsonb_populate_recordset query. see simple example below  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs

On Fri, Nov 23, 2018 at 7:21 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
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.

Thanks for checking, I thought of the same thing, but I wasn't sure.

Regards,
Haribabu Kommi
Fujitsu Australia

В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15518: intarray index crashes hard
Следующее
От: Sandeep Thakkar
Дата:
Сообщение: Re: PostgreSQL v11 offline (portable) version libwinpthread-1.dll error