On Tue, Aug 26, 2003 at 17:48:38 -0300, Rhaoni Chiu Pereira <[EMAIL PROTECTED]> 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. ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend