Re: BUG #6719: PG shouldn't filter on same criteria as index search - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #6719: PG shouldn't filter on same criteria as index search
Date
Msg-id 2789.1341529339@sss.pgh.pa.us
Whole thread Raw
In response to BUG #6719: PG shouldn't filter on same criteria as index search  (blove319@hotmail.com)
List pgsql-bugs
blove319@hotmail.com writes:
> After doing an equality search on an indexed field, PG is doing a filter on
> the same value using a regex.  That appears to be a useless operation that
> will only consume cpu cycles.

Getting rid of the filter expression isn't really worth the trouble.

If we had done the transformation of regexes to index conditions in a
different way, it might be practical to suppress the redundant test,
but given the way the code is structured we can't easily.

            regards, tom lane

pgsql-bugs by date:

Previous
From: blove319@hotmail.com
Date:
Subject: BUG #6719: PG shouldn't filter on same criteria as index search
Next
From: Craig Ringer
Date:
Subject: Re: BUG #6720: Its often disconnecting