Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

Next:From: Christopher Kings-LynneDate: 2003-12-19 01:38:50
Subject: Re: is it possible to get the optimizer to use indexes
Previous:From: Dave CramerDate: 2003-12-18 23:18:48
Subject: is it possible to get the optimizer to use indexes with a likeclause

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group