Re: Case Insensitive searches

Поиск
Список
Период
Сортировка
Искать
От
Richard Broersma
Тема
Re: Case Insensitive searches
Дата
Msg-id
396486430808040705m5002d334iaf08f8fee03c5107@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Case Insensitive searches "Mike Gould" <mgould@allcoast.net>
Re: Case Insensitive searches "Richard Broersma" <richard.broersma@gmail.com>
Re: Case Insensitive searches Terry Lee Tucker <terry@chosen-ones.org>
Re: Case Insensitive searches Frank Bax <fbax@sympatico.ca>
Re: Case Insensitive searches Terry Lee Tucker <terry@chosen-ones.org>
Re: Case Insensitive searches "Rafael Domiciano" <rafael.domiciano@gmail.com>
Re: Case Insensitive searches Terry Lee Tucker <terry@chosen-ones.org>
On Mon, Aug 4, 2008 at 6:54 AM, Mike Gould  wrote:
>In some db's if you
> use a lower() or upr() it will always do a table scan instead of using a
> index

True, this would also happen in PostgreSQL.  However, you can overcome
this by creating a "functional" index:

http://www.postgresql.org/docs/8.3/interactive/indexes-expressional.html

This way all expression using where lower( column ) = 'a'. will always
use an index scan.


-- 
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

В списке pgsql-sql по дате отправления
От: Tom Lane
Дата:
От: Terry Lee Tucker
Дата:
Сообщение: Re: Case Insensitive searches
FAQ