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

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




view thread (11+ messages)  latest in thread

Message-ID: <87d6alsi2i.fsf@asmodeus.mcnaught.org>
Permalink:  ../87d6alsi2i.fsf@asmodeus.mcnaught.org/
Also on:    postgresql.org/message-id/87d6alsi2i.fsf@asmodeus.mcnaught.org

 · 

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: doug@mcnaught.org
  Subject: Re: is it possible to get the optimizer to use indexes
  In-Reply-To: <87d6alsi2i.fsf@asmodeus.mcnaught.org>

* 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