Re: querying with index on jsonb slower than standard column. Why? - Mailing list pgsql-sql

From Tom Lane
Subject Re: querying with index on jsonb slower than standard column. Why?
Date
Msg-id 27877.1418057764@sss.pgh.pa.us
Whole thread Raw
In response to Re: querying with index on jsonb slower than standard column. Why?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: querying with index on jsonb slower than standard column. Why?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> Seems work_mem is the key:

Fascinating.  So there's some bad behavior in the lossy-bitmap stuff
that's exposed by one case but not the other.  The set of heap rows we
actually need to examine is presumably identical in both cases.  The
only idea that comes to mind is that the order in which the TIDs get
inserted into the bitmaps might be entirely different between the two
index types.  We might have to write it off as bad luck, if the
lossification algorithm doesn't have enough information to do better;
but it seems worth looking into.
        regards, tom lane



pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: querying with index on jsonb slower than standard column. Why?
Next
From: Tom Lane
Date:
Subject: Re: querying with index on jsonb slower than standard column. Why?