Unix Technical Forum

Does Lower make indexes useless?

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 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces jdbc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 12:04 AM
Clemens Eisserer
 
Posts: n/a
Default Does Lower make indexes useless?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 12:04 AM
Kris Jurka
 
Posts: n/a
Default Re: Does Lower make indexes useless?



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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 12:04 AM
Clemens Eisserer
 
Posts: n/a
Default Re: Does Lower make indexes useless?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com