Re: Sequence Scan vs. Index scan

From: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
To: Fernando Lujan <fernando(dot)lujan(at)mandic(dot)com(dot)br>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Sequence Scan vs. Index scan
Date: 2006-03-21 18:17:32
Message-ID: 20060321181732.GA16124@uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, Mar 21, 2006 at 03:08:07PM -0300, Fernando Lujan wrote:
> I'm trying to figure out when Sequence Scan is better than Index Scan. I
> just want to know this because I disabled the sequence scan in
> postgresql and receive a better result. :)

That is a very broad question, and you're introducing somewhat of a false
choice since you're talking about joins (a join can be solved by more methods
than just "sequential scan" or not).

Could you please paste the exact query you're using, with EXPLAIN ANALYZE for
both the case with and without sequential scans?

/* Steinar */
--
Homepage: http://www.sesse.net/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mikael Carneholm 2006-03-21 18:22:43 Re: Sequence Scan vs. Index scan
Previous Message Fernando Lujan 2006-03-21 18:08:07 Sequence Scan vs. Index scan