Re: ILIKE and indexes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ILIKE and indexes
Date
Msg-id 20824.1174275293@sss.pgh.pa.us
Whole thread Raw
In response to ILIKE and indexes  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Responses Re: ILIKE and indexes  ("Guillaume Smet" <guillaume.smet@gmail.com>)
List pgsql-hackers
"Guillaume Smet" <guillaume.smet@gmail.com> writes:
> The usual trick recommended in the doc is to use lower() and LIKE but
> it leads to bad row estimates (it's constant whatever the search
> pattern is)

Not if you have an index on lower(col) which one supposes you'd have
anyway for such an application.  Or are you running an ancient PG
release?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Buildfarm feature request: some way to track/classify failures
Next
From: Tom Lane
Date:
Subject: Re: Bug in UTF8-Validation Code?