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

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

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Doug McNaught <doug(at)mcnaught(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: is it possible to get the optimizer to use indexes
Date: 2003-12-24 13:58:34
Message-ID: 1072274314.1687.12.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-performance
Doug,

Yes, it does depend on the locale, you can get around this in 7.4 by
building the index with smart operators

Dave
On Thu, 2003-12-18 at 20:38, Doug McNaught wrote:
> 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
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>       message can get through to the mailing list cleanly
> 
> 


In response to

pgsql-performance by date

Next:From: Michael RothschildDate: 2003-12-24 16:25:43
Subject:
Previous:From: Michael GuerinDate: 2003-12-23 00:33:37
Subject: Re: postgresql performance on linux port

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