Re: LIke and Indicies

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: LIke and Indicies
Дата
Msg-id 200502251805.31752.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: LIke and Indicies  (Dave Smith <dave.smith@candata.com>)
Список pgsql-general
Am Freitag, 25. Februar 2005 17:54 schrieb Dave Smith:
> >From my reading of that statement it says it is going to use the index
>
> to match company_id=1000 and then fetch the row and compare
> product_desc. Where as in the the case without the like it is using
> product description in the Index Condition.

Well, the truth is that it has *the option* to use the index, but it doesn't
have to.  This really mostly independent of the LIKE index issue.  If you
think that the plan choice is not optimal, try EXPLAIN ANALYZE and post the
results if you need help interpreting them.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: "Dr. Stephane Schildknecht"
Дата:
Сообщение: Association PostgreSQLFr, statuts et inscription
Следующее
От: Thomas F.O'Connell
Дата:
Сообщение: Re: LIke and Indicies