Re: Bug #474: Index using problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug #474: Index using problem
Дата
Msg-id 6987.1002289730@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug #474: Index using problem  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
>   explain select * from cim where utod_cim_id=0;
>   NOTICE:  QUERY PLAN:
>   Seq Scan on cim  (cost=0.00..6555.41 rows=253633 width=118)

>   The query optimizer does not use my index..

How many rows are there where utod_cim_id=0?  The planner guesses that
there are a lot (253633, to be exact) and concludes that using the index
is not profitable for this query.

            regards, tom lane

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

Предыдущее
От: Andreas Wernitznig
Дата:
Сообщение: Re: Bug #474: Index using problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug #474: Index using problem