Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group