Re: Surprising sequence scan when function call used

Поиск
Список
Период
Сортировка
От Hosokawa Tetsuichi
Тема Re: Surprising sequence scan when function call used
Дата
Msg-id 20001026040849.BB795405E@poseidon.good-day.co.jp
обсуждение исходный текст
Ответ на Surprising sequence scan when function call used  ("Will Fitzgerald" <fitzgerald@inetmi.com>)
Список pgsql-sql
see
functional index

On Wed, 25 Oct 2000 13:26:51 -0400
"Will Fitzgerald" <fitzgerald@inetmi.com> wrote:

> I have a table, login, which has a field by the same name; there's an index
> on that field. I was surprised to discover that a SELECT which compares the
> login field to a constant uses an Index scan, but if it is compared to a
> function call--for example, lower()--a sequence scan is forced.
> 
> Any idea why?
--
* Hosokawa Tetsuichi
* hosokawa@good-day.co.jp


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Query Problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: plperl