indexing and LIKE

Поиск
Список
Период
Сортировка
От Patrik Kudo
Тема indexing and LIKE
Дата
Msg-id 20011011141651.B50778-100000@tb303.partitur.se
обсуждение исходный текст
Ответы Re: indexing and LIKE  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Re: indexing and LIKE  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-sql
Hi!

If I want to be able to search for stringmatches using LIKE, doing
something like the following:

select id, name from table1 where lower(name) like 'somestring%';

Actually I will be joining with some other table on id too, but the join
will produce a substancial amount of data to be filtered with the LIKE
clause so I figure if it'd be possible to index on lower(name) somehow,
it would result in an appreciated speed gain.

Is it at all possible to create an index on lower(name), and in that case,
what type of index and using what syntax? Is it possible to create a
multicolumn index on both id and name? Both id and name are of type
"text".

TIA,
Patrik Kudo



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [NOVICE] Loading current_user and current_timestamp using COPY
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: indexing and LIKE