pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Doug McNaught <doug@mcnaught.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: is it possible to get the optimizer to use indexes
Date: 24 Dec 2003 08:58:34 -0500
Message-ID: <1072274314.1687.12.camel@localhost.localdomain> (raw)
In-Reply-To: <87d6alsi2i.fsf@asmodeus.mcnaught.org>
References: <3FE1F5A1.6080908@geizhals.at>
	<60n09q9bqg.fsf@dev6.int.libertyrms.info>
	<1071789528.1629.10.camel@localhost.localdomain>
	<3FE256AA.8000707@familyhealth.com.au>
	<87d6alsi2i.fsf@asmodeus.mcnaught.org>

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@familyhealth.com.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@postgresql.org so that your
>       message can get through to the mailing list cleanly
> 
> 




view thread (11+ messages)

Message-ID: <1072274314.1687.12.camel@localhost.localdomain>
Permalink:  ../1072274314.1687.12.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1072274314.1687.12.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pg@fastcrypt.com, doug@mcnaught.org
  Subject: Re: is it possible to get the optimizer to use indexes
  In-Reply-To: <1072274314.1687.12.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox