Index on wildcard text search

Поиск
Список
Период
Сортировка
От Leandro Fanzone
Тема Index on wildcard text search
Дата
Msg-id 3CC85565.FD27C3A@hasar.com
обсуждение исходный текст
Ответы Re: Index on wildcard text search  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Excuse me if this is a silly question. Say I have a table with a text
field, where I perform search operations always in the following form:

SELECT * from table where LOWER(textfield) like 'X%';

Where "X" is one or more letters ("case insensitive begins with").
Does help in some way if I create a binary tree index on that field? I
mean, having a btree index to search with, "begins with" sounds easier,
but the LOWER operation probably invalidates its use. If this has no
sense, do you have another suggestion for the case?
Thank you,

Leandro Fanzone
Compañía HASAR


В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Shell Script Execution
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Index on wildcard text search