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

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

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: pg(at)fastcrypt(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: is it possible to get the optimizer to use indexes
Date: 2003-12-19 01:38:50
Message-ID: 3FE256AA.8000707@familyhealth.com.au (view raw or flat)
Thread:
Lists: pgsql-performance
> 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%';

Chris


In response to

Responses

pgsql-performance by date

Next:From: Dave CramerDate: 2003-12-19 03:08:37
Subject: Re: is it possible to get the optimizer to use indexes
Previous:From: Doug McNaughtDate: 2003-12-19 01:38:13
Subject: Re: is it possible to get the optimizer to use indexes

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