pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bjorn T Johansen <btj@havleik.no>
Cc: pgsql-general@postgresql.org
Subject: Re: Seq scan of table?
Date: Fri, 05 Sep 2003 02:44:51 -0400
Message-ID: <9565.1062744291@sss.pgh.pa.us> (raw)
In-Reply-To: <58940.193.212.14.12.1062742087.squirrel@www.havleik.no>
References: <58940.193.212.14.12.1062742087.squirrel@www.havleik.no>

"Bjorn T Johansen" <btj@havleik.no> writes:
> 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?

Who's to say, when you gave us no details?  Show us the table schemas,
the exact query, and EXPLAIN ANALYZE output, and you might get useful
responses.

(btw, pgsql-performance would be a more appropriate list for this issue
than pgsql-general.)

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <9565.1062744291@sss.pgh.pa.us>
Permalink:  ../9565.1062744291@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9565.1062744291@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, btj@havleik.no, pgsql-general@postgresql.org
  Subject: Re: Seq scan of table?
  In-Reply-To: <9565.1062744291@sss.pgh.pa.us>
  References: <58940.193.212.14.12.1062742087.squirrel@www.havleik.no> <9565.1062744291@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox