Re: Index does not working.

Поиск
Список
Период
Сортировка
От Douglas McNaught
Тема Re: Index does not working.
Дата
Msg-id m21x76xbbk.fsf@Douglas-McNaughts-Powerbook.local
обсуждение исходный текст
Ответ на Re: Index does not working.  (Dan Black <fireworker@gmail.com>)
Список pgsql-general
Dan Black <fireworker@gmail.com> writes:

> 1)
> select * from my_table where active and deleted
> --------------
> Seq Scan on my_table  (cost=100000000.00..100000180.00 rows=2500 width=56)
>   Filter: (active AND deleted)
>
> 2)
> select * from my_table where active = true and deleted = true
> -------------
> Index Scan using my_table_index on my_table  (cost=0.00..369.00 rows=2500
> width=56)
>   Index Cond: ((deleted = true) AND (active = true))

Looks like you haven't ever ANALYZED this table.

-Doug

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

Предыдущее
От: Dan Black
Дата:
Сообщение: Re: Index does not working.
Следующее
От: Együd Csaba
Дата:
Сообщение: PG 8.0.1 is getting slow in 24 hours. Only daily VACUUM FULL helps