Re: How to force an Index ? - Mailing list pgsql-admin

From Bruno Wolff III
Subject Re: How to force an Index ?
Date
Msg-id 20030827122446.GC25010@wolff.to
Whole thread Raw
In response to How to force an Index ?  (Rhaoni Chiu Pereira <rhaoni@sistemica.info>)
List pgsql-admin
On Tue, Aug 26, 2003 at 17:48:38 -0300,
  Rhaoni Chiu Pereira <rhaoni@sistemica.info> wrote:
> when I need for just one query a especific index to be used the only way is to
> raise the costs ?

There is no way to say to use a specific index. You can turn off some plans
(and raise the cost of sequential scans, since that is sometimes the only
way to do something) or you can adjust the relative costs of such things
as cpu time and disk i/o. Making sure you have done an analyze and that
you have detailed enough statistics for the planner is also important.

P.S. You should keep replies on the list.

pgsql-admin by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: postgresql and replication
Next
From: Hornyak Laszlo
Date:
Subject: Re: postgres hab modification without restarting