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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-performance by date

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