Re: is it possible to get the optimizer to use indexes

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: is it possible to get the optimizer to use indexes
Date: 2003-12-19 01:38:13
Message-ID: 87d6alsi2i.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:

>> It appears that the optimizer only uses indexes for = clause?
>
> The optimizer will used indexes for LIKE clauses, so long as the
> clause is a prefix search, eg:
>
> SELECT * FROM test WHERE a LIKE 'prf%';

Doesn't this still depend on your locale?

-Doug

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-12-19 01:38:50 Re: is it possible to get the optimizer to use indexes
Previous Message Dave Cramer 2003-12-18 23:18:48 is it possible to get the optimizer to use indexes with a like clause