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

From: Martin Hampl <Martin(dot)Hampl(at)gmx(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: indexing with lower(...) -> queries are not optimised very well - Please Help
Date: 2003-11-26 10:52:35
Message-ID: A4CA6B94-1FFE-11D8-8431-000393674318@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Am 21.11.2003 um 06:54 schrieb Tom Lane:

> Martin Hampl <Martin(dot)Hampl(at)gmx(dot)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.

Thanks a lot for your answer.

Any idea about when this situation will be improved? Until then I have
to find a work around... any suggestions?

Regards,
Martin.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ing.Martin Prášek 2003-11-26 11:15:34 renaming a database
Previous Message Richard Huxton 2003-11-26 10:16:33 Re: TIMEZONE not working?