pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: 4321ip@gmail.com, pgsql-bugs@lists.postgresql.org, Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: BUG #15514: process fails on jsonb_populate_recordset query. see simple example below
Date: Wed, 21 Nov 2018 02:47:47 +0000
Message-ID: <87sgzvrvyg.fsf@news-spur.riddles.org.uk> (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" == Haribabu Kommi <kommi.haribabu@gmail.com> writes:

 Haribabu> when the data is NULL, there is no data to populate and the
 Haribabu> tupleDesc is not updated. Accessing of NULL pointer leads to
 Haribabu> crash. Attached quick simple patch fixes the problem.

Yes, that's an oversight in 4984784f836 (from Tom) which fixed a
_different_ crash here.

Tom: I can take this one if you want?

-- 
Andrew (irc:RhodiumToad)




view thread (7+ messages)  latest in thread

Message-ID: <87sgzvrvyg.fsf@news-spur.riddles.org.uk>
Permalink:  ../87sgzvrvyg.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87sgzvrvyg.fsf@news-spur.riddles.org.uk

 · 

reply

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: andrew@tao11.riddles.org.uk, kommi.haribabu@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #15514: process fails on jsonb_populate_recordset query. see simple example below
  In-Reply-To: <87sgzvrvyg.fsf@news-spur.riddles.org.uk>

* 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