pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Cain <cain@cshl.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: force the use of a particular index
Date: Fri, 11 Jul 2003 11:24:01 -0400
Message-ID: <11919.1057937041@sss.pgh.pa.us> (raw)
In-Reply-To: <1057850280.1451.22.camel@localhost.localdomain>
References: <1057850280.1451.22.camel@localhost.localdomain>

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



view thread (12+ messages)  latest in thread

Message-ID: <11919.1057937041@sss.pgh.pa.us>
Permalink:  ../11919.1057937041@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11919.1057937041@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, cain@cshl.org
  Subject: Re: force the use of a particular index
  In-Reply-To: <11919.1057937041@sss.pgh.pa.us>
  References: <1057850280.1451.22.camel@localhost.localdomain> <11919.1057937041@sss.pgh.pa.us>

* 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