Re: Re: LIKE and indexes? - Mailing list pgsql-general

From Brent R. Matzelle
Subject Re: Re: LIKE and indexes?
Date
Msg-id 200103152019.f2FKJFx56596@mail.postgresql.org
Whole thread Raw
In response to LIKE and indexes?  (Alexander Jerusalem <alexander.jerusalem@pop.chello.at>)
Responses Re: Re: LIKE and indexes?
List pgsql-general
3/15/2001 3:39:27 AM, Alexander Jerusalem <alexander.jerusalem@pop.chello.at>
wrote:

>Thanks for your answer, Alex!
>
>I've done an EXPLAIN and I saw that no index was used although my SQL
>statement had a wild card only at the end as you pointed out ('blah%'). My
>guess is that this is because of the locale support.

How large is the index in question?  I recall reading that PostgreSQL doesn't
utilize an index if the overhead of using it was calculated as higher than a
sequential scan.

Brent


pgsql-general by date:

Previous
From: "Brent R. Matzelle"
Date:
Subject: Re: ODBC
Next
From: "Thomas F. O'Connell"
Date:
Subject: infinity