Re: Bitmap index scans use of filters on available columns - Mailing list pgsql-hackers

From Nicolas Barbier
Subject Re: Bitmap index scans use of filters on available columns
Date
Msg-id CAP-rdTYXmUT2rYOKHVfWeUaiPvkVR90jfLMUN9BQ24o-uRq2Rw@mail.gmail.com
Whole thread Raw
In response to Re: Bitmap index scans use of filters on available columns  (Antonin Houska <ah@cybertec.at>)
Responses Re: Bitmap index scans use of filters on available columns  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
2015-11-04 Antonin Houska <ah@cybertec.at>:

> While prefix expression
>
> y like 'abc%'
>
> can be converted to
>
> y >= 'abc'
>
> (see expand_indexqual_opclause()), I'm not sure any kind of expansion is
> possible for '%abc%' which would result in a b-tree searchable condition.

I think the question is not about using the b-tree for checking the
condition, but about just retrieving the value for y from the index,
and just using that to check the condition before fetching the
corresponding tuple from the heap.

Nicolas

-- 
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby
Next
From: Pavel Stehule
Date:
Subject: Re: [patch] Proposal for \rotate in psql