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

From Antonin Houska
Subject Re: Bitmap index scans use of filters on available columns
Date
Msg-id 20734.1446628341@localhost
Whole thread Raw
In response to Bitmap index scans use of filters on available columns  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Bitmap index scans use of filters on available columns  (Nicolas Barbier <nicolas.barbier@gmail.com>)
List pgsql-hackers
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.

Jeff Janes <jeff.janes@gmail.com> wrote:

> Is there a fundamental reason the filter on y is not being applied to
> the index scan, rather than the heap scan?

--
Antonin Houska
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt
Web: http://www.postgresql-support.de, http://www.cybertec.at



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: extend pgbench expressions with functions
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: PL/Pythonu - function ereport