Re: is it possible to get the optimizer to use indexes

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: is it possible to get the optimizer to use indexes
Дата
Msg-id 3FE256AA.8000707@familyhealth.com.au
обсуждение исходный текст
Ответ на is it possible to get the optimizer to use indexes with a like clause  (Dave Cramer <pg@fastcrypt.com>)
Ответы Re: is it possible to get the optimizer to use indexes  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-performance
> It appears that the optimizer only uses indexes for = clause?

The optimizer will used indexes for LIKE clauses, so long as the clause
is a prefix search, eg:

SELECT * FROM test WHERE a LIKE 'prf%';

Chris


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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: is it possible to get the optimizer to use indexes with a like clause
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: is it possible to get the optimizer to use indexes