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?
In response to
pgsql-performance by date
|Next:||From: Christopher Kings-Lynne||Date: 2003-12-19 01:38:50|
|Subject: Re: is it possible to get the optimizer to use indexes|
|Previous:||From: Dave Cramer||Date: 2003-12-18 23:18:48|
|Subject: is it possible to get the optimizer to use indexes with a likeclause|