Seq scan of table?

From: "Bjorn T Johansen" <btj(at)havleik(dot)no>
To: pgsql-general(at)postgresql(dot)org
Subject: Seq scan of table?
Date: 2003-09-05 06:08:07
Message-ID: 58940.193.212.14.12.1062742087.squirrel@www.havleik.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

I am trying to tune my database and I discovered one select that does a
seq scan on a table but I can't see why... All the join fields are indexed
and I am returning just one record, so no sort is done.
Does it just pick seq scan for the heck of it or is it a reason?

Regards,

BTJ

-----------------------------------------------------------------------------------------------
Bjørn T Johansen (BSc,MNIF)
Executive Manager
btj(at)havleik(dot)no Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91 N-1338 Sandvika
Cellular : +47 926 93 298 http://www.havleik.no
-----------------------------------------------------------------------------------------------
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."
-----------------------------------------------------------------------------------------------

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno BAGUETTE 2003-09-05 06:34:47 RE : Seq scan of table?
Previous Message Stephan Szabo 2003-09-05 05:56:49 Re: Optimizer picks an ineffient plan

Browse pgsql-performance by date

  From Date Subject
Next Message Bruno BAGUETTE 2003-09-05 06:34:47 RE : Seq scan of table?
Previous Message Relaxin 2003-09-05 04:59:01 Re: SELECT's take a long time compared to other DBMS