Re: BUG #11207: empty path will segfault jsonb #>

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Justin Van Winkle <justin(dot)vanwinkle(at)gmail(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #11207: empty path will segfault jsonb #>
Date: 2014-08-20 23:39:16
Message-ID: CAM3SWZT2kaPABwxta3GFzhXsLQiLP5sO10r4H--h-D50b=8P3g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wed, Aug 20, 2014 at 4:30 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> The regression test changes show that we were really pretty inconsistent
> about whether to throw error or return NULL for cases where the JSON
> tree structure didn't match the extraction request. I think having a
> uniform rule is a definite improvement.

That's unfortunate. I'm very much in favor of these changes.

--
Peter Geoghegan

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrew Dunstan 2014-08-21 00:50:55 Re: BUG #11207: empty path will segfault jsonb #>
Previous Message Tom Lane 2014-08-20 23:30:16 Re: BUG #11207: empty path will segfault jsonb #>