From: Scott Cain <cain@cshl.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: force the use of a particular index
Date: 11 Jul 2003 11:38:47 -0400
Message-ID: <1057937927.5766.21.camel@localhost.localdomain> (raw)
In-Reply-To: <11919.1057937041@sss.pgh.pa.us>
References: <1057850280.1451.22.camel@localhost.localdomain>
<11919.1057937041@sss.pgh.pa.us>
Hi Tom,
Embarrassingly, I can't. I've been monkeying with the database so much
that I can't seem to get it back to the state where I reproduce the
behavior I want. A database drop and reload may be the only way, but
since that is a time consuming thing to do, I won't be able to do it
until this evening.
Thanks,
Scott
On Fri, 2003-07-11 at 11:24, Tom Lane wrote:
> Scott Cain <cain@cshl.org> writes:
> > So, the question is, is there a way I can force the query planner to use
> > the index I want it to use?
>
> No (and I don't think there should be). Given that it *can* generate
> the plan you want, this is clearly an estimation failure. What is the
> index it does use? Would you show us EXPLAIN ANALYZE results when
> using each index?
>
> regards, tom lane
--
------------------------------------------------------------------------
Scott Cain, Ph. D. cain@cshl.org
GMOD Coordinator (http://www.gmod.org/) 216-392-3087
Cold Spring Harbor Laboratory
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: cain@cshl.org, tgl@sss.pgh.pa.us
Subject: Re: force the use of a particular index
In-Reply-To: <1057937927.5766.21.camel@localhost.localdomain>
References: <1057850280.1451.22.camel@localhost.localdomain> <11919.1057937041@sss.pgh.pa.us> <1057937927.5766.21.camel@localhost.localdomain>
* 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