Re: JOIN not being calculated correctly - Mailing list pgsql-sql

From Tom Lane
Subject Re: JOIN not being calculated correctly
Date
Msg-id 626.1100987494@sss.pgh.pa.us
Whole thread Raw
In response to Re: JOIN not being calculated correctly  ("Scott Pederick" <sql.postgresql.org@pederick.com>)
List pgsql-sql
"Scott Pederick" <sql.postgresql.org@pederick.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


pgsql-sql by date:

Previous
From: "Scott Pederick"
Date:
Subject: Re: JOIN not being calculated correctly
Next
From: Justine.Cleary@c1data.com
Date:
Subject: missing... at end of sql expression