Sequence Scan vs. Index scan

From: Fernando Lujan <fernando(dot)lujan(at)mandic(dot)com(dot)br>
To: pgsql-performance(at)postgresql(dot)org
Subject: Sequence Scan vs. Index scan
Date: 2006-03-21 18:08:07
Message-ID: 44204107.3040708@mandic.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi guys,

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. :)

Two tables.

Table 1 (1 million rows )
-----------
id
text
table2_id

Table 2 (300 thousand rows)
----------
id
text 2

When I join these two tables I have a sequence_scan. :(

Thanks in advance.

Fernando Lujan

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Steinar H. Gunderson 2006-03-21 18:17:32 Re: Sequence Scan vs. Index scan
Previous Message Jim C. Nasby 2006-03-21 17:59:01 Re: Best OS & Configuration for Dual Xeon w/4GB &