Re: JOIN not being calculated correctly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Scott Pederick" <sql(dot)postgresql(dot)org(at)pederick(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: JOIN not being calculated correctly
Date: 2004-11-20 21:51:34
Message-ID: 626.1100987494@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Scott Pederick" <sql(dot)postgresql(dot)org(at)pederick(dot)com> writes:
> Still can't fathom why it's not using an index scan on the jobs table..

Why exactly do you think that would make it faster?

The query evidently requires visiting every single jobs row, so a
seqscan seems appropriate to me; indeed I'd say the planner picked
exactly the perfect plan. If you think not, try forcing other plan
choices and see what happens to the runtime.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message André Toscano 2004-11-21 23:07:48 Functions return a select in a table, which data type I must use? (Brazilian User)
Previous Message Scott Pederick 2004-11-20 21:37:54 Re: JOIN not being calculated correctly