From: Bruno Wolff III <bruno@wolff.to>
To: Rhaoni Chiu Pereira <rhaoni@sistemica.info>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to force an Index ?
Date: Wed, 27 Aug 2003 07:24:46 -0500
Message-ID: <20030827122446.GC25010@wolff.to> (raw)
In-Reply-To: <1061930918.3f4bc7a63f7d6@www.sistemica.info>
References: <1061925116.3f4bb0fc641b2@www.sistemica.info>
<20030826194558.GA19181@wolff.to>
<1061930918.3f4bc7a63f7d6@www.sistemica.info>
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.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, rhaoni@sistemica.info
Subject: Re: How to force an Index ?
In-Reply-To: <20030827122446.GC25010@wolff.to>
References: <1061925116.3f4bb0fc641b2@www.sistemica.info> <20030826194558.GA19181@wolff.to> <1061930918.3f4bc7a63f7d6@www.sistemica.info> <20030827122446.GC25010@wolff.to>
* 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