This is a discussion on Does Lower make indexes useless? within the pgsql Interfaces jdbc forums, part of the PostgreSQL category; --> Hi, I am using queries very often which look like "... WHERE LOWER(field)='..';" to allow case-insensitive search on varchar ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I am using queries very often which look like "... WHERE LOWER(field)='..';" to allow case-insensitive search on varchar columns. Does this make indexes useless or are there algorythmns which allow using indexes even in this case? Are there ways how this could be done in a better way? Thank you in advance, lg Clemens ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| |||
| On Fri, 5 May 2006, Clemens Eisserer wrote: > I am using queries very often which look like "... WHERE > LOWER(field)='..';" to allow case-insensitive search on varchar > columns. > > Does this make indexes useless or are there algorythmns which allow > using indexes even in this case? > Are there ways how this could be done in a better way? > This question has nothing to do with Java or JDBC, so this isn't the right list. You should try -novice or -general. http://www.postgresql.org/docs/8.1/s...ressional.html Kris Jurka ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| ||||
| Sorry for the traffic, I was already subscribed and I was too lazy. > This question has nothing to do with Java or JDBC, so this isn't the right > list. You should try -novice or -general. > > http://www.postgresql.org/docs/8.1/s...ressional.html Perfect, thanks a lot :-) Thanks again, lg Clemens ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |