Re: Forcing using index instead of sequential scan?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Cc: robin(dot)c(dot)smith(at)bt(dot)com
Subject: Re: Forcing using index instead of sequential scan?
Date: 2006-07-21 11:45:41
Message-ID: 200607211345.41573.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

robin(dot)c(dot)smith(at)bt(dot)com wrote:
> What is the best way to force the use of indexes in these queries?

Well, the brute-force method is to use SET enable_seqscan TO off, but if
you want to get to the bottom of this, you should look at or post the
EXPLAIN ANALYZE output of the offending queries.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message robin.c.smith 2006-07-21 12:02:06 Re: Forcing using index instead of sequential scan?
Previous Message robin.c.smith 2006-07-21 10:40:33 Forcing using index instead of sequential scan?