[rt-devel] extremely slow query in rt 3.0.10 due to ILIKE instead of =

Vivek Khera vivek at khera.org
Tue Mar 30 14:46:11 EST 2004


On Mar 30, 2004, at 2:38 PM, Jesse Vincent wrote:

> What is the right way to do fast case-insensitive comparisons in 
> postgres that take database indexes into account?

make your index functional on lower(column) and then compare 
lower(column) = lower('string').  don't just index on the column 
directly.




More information about the Rt-devel mailing list