Re: jsonb contains behaviour weirdness

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Alexander Korotkov <aekorotkov(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: jsonb contains behaviour weirdness
Date: 2014-09-15 18:40:49
Message-ID: CAM3SWZR2f+=CLrOziRv4XWp8cXbOtgdLv+fh0C=jdjYrc0hZHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Sep 15, 2014 at 11:29 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> It might be that the benefit is very close to nil; that would depend a lot
> on workload, so it's hard to be sure. I'd say though that the cost is
> also very close to nil, in the sense that we're considering two additional
> compare-and-branch instructions in a function that will surely expend
> hundreds or thousands of instructions if there's no such short-circuit.

Fair enough.

--
Peter Geoghegan

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2014-09-15 18:51:53 Re: Collation-aware comparisons in GIN opclasses
Previous Message Tom Lane 2014-09-15 18:29:54 Re: jsonb contains behaviour weirdness