From: Michael Paquier <michael@paquier.xyz>
To: Sergei Kornilov <sk@zsrv.org>
Cc: Marks Polakovs <marks-mailinglists@markspolakovs.me>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: UPDATE with json_populate_recordset empty array crashes server
Date: Thu, 1 Aug 2019 08:46:16 +0900
Message-ID: <20190731234616.GC29334@paquier.xyz> (raw)
In-Reply-To: <18620891564566850@iva3-67f911cb3a01.qloud-c.yandex.net>
References: <16c473d9703.bcae5a61323706.3752002245992279523@markspolakovs.me>
<18620891564566850@iva3-67f911cb3a01.qloud-c.yandex.net>
On Wed, Jul 31, 2019 at 12:54:10PM +0300, Sergei Kornilov wrote:
> I think this was already fixed for a long time:
> https://www.postgresql.org/docs/11/release-11-2.html
> Fix crash when zero rows are fed to json[b]_populate_recordset()
> or json[b]_to_recordset() (Tom Lane)
Yes, this has been fixed and it matches to this commit:
commit: eba2ce17121f198316d050e71d8bd049a43783ba
author: Tom Lane <tgl@sss.pgh.pa.us>
date: Thu, 22 Nov 2018 15:14:01 -0500
Fix another crash in json{b}_populate_recordset and json{b}_to_recordset.
And here is the related thread:
https://www.postgresql.org/message-id/15514-59d5b4c4065b178b@postgresql.org
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, sk@zsrv.org, marks-mailinglists@markspolakovs.me
Subject: Re: UPDATE with json_populate_recordset empty array crashes server
In-Reply-To: <20190731234616.GC29334@paquier.xyz>
References: <16c473d9703.bcae5a61323706.3752002245992279523@markspolakovs.me> <18620891564566850@iva3-67f911cb3a01.qloud-c.yandex.net> <20190731234616.GC29334@paquier.xyz>
* 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