Re: indexing with lower(...) -> queries are not optimised very well - Please Help

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: indexing with lower(...) -> queries are not optimised very well - Please Help
Дата
Msg-id 9549.1069394089@sss.pgh.pa.us
обсуждение исходный текст
Ответ на indexing with lower(...) -> queries are not optimised very well - Please Help  (Martin Hampl <Martin.Hampl@gmx.de>)
Ответы Re: indexing with lower(...) -> queries are not optimised very well - Please Help  (Martin Hampl <Martin.Hampl@gmx.de>)
Re: indexing with lower(...) -> queries are not optimised very well - Please Help  (Martin Hampl <Martin.Hampl@gmx.de>)
Список pgsql-general
Martin Hampl <Martin.Hampl@gmx.de> writes:
>   Index Scan using word_lower_idx on token  (cost=0.00..98814.08
> rows=25382 width=16)
>     Index Cond: (lower((word)::text) = 'saxophone'::text)

The rows estimate (and therefore also the cost estimate) is a complete
guess in this situation, because the system keeps no statistics about
the values of lower(word).  Improving this situation is on the TODO list.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Lock questions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: problem running postmaster