From: Jacques Caron <jc@directinfos.com>
To: Karl O. Pinc <kop@meme.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Forcing use of a particular index
Date: Tue, 28 Jun 2005 00:40:53 +0200
Message-ID: <6.2.0.14.0.20050628003823.065c2de8@pop.interactivemediafactory.net> (raw)
In-Reply-To: <1119914161l.4428l.4l@mofo>
References: <1119914161l.4428l.4l@mofo>
Hi,
At 01:16 28/06/2005, Karl O. Pinc wrote:
>http://www.postgresql.org/docs/8.0/static/indexes-examine.html
>
>Says:
>
>"If you do not succeed in adjusting the costs to be more
>appropriate, then you may have to resort to forcing index
>usage explicitly."
>
>Is there a way to force a query to use a particular index?
Not that I know of.
>If not, what does this sentence mean?
That you can force the planner to use an index (any one) over not using an
index (and using seq scans instead) by setting enable_seqscan to off.
Jacques.
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-performance@postgresql.org
Cc: jc@directinfos.com, kop@meme.com
Subject: Re: Forcing use of a particular index
In-Reply-To: <6.2.0.14.0.20050628003823.065c2de8@pop.interactivemediafactory.net>
References: <1119914161l.4428l.4l@mofo> <6.2.0.14.0.20050628003823.065c2de8@pop.interactivemediafactory.net>
* 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