Re: jsonb contains behaviour weirdness - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: jsonb contains behaviour weirdness
Date
Msg-id CAM3SWZR2f+=CLrOziRv4XWp8cXbOtgdLv+fh0C=jdjYrc0hZHA@mail.gmail.com
Whole thread Raw
In response to Re: jsonb contains behaviour weirdness  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Sep 15, 2014 at 11:29 AM, Tom Lane <tgl@sss.pgh.pa.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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: jsonb contains behaviour weirdness
Next
From: Peter Geoghegan
Date:
Subject: Re: Collation-aware comparisons in GIN opclasses