Re: odd planner choice - Mailing list pgsql-performance

From Tom Lane
Subject Re: odd planner choice
Date
Msg-id 28299.1080342534@sss.pgh.pa.us
Whole thread Raw
In response to odd planner choice  ("Ara Anjargolian" <ara@jargol.com>)
List pgsql-performance
"Ara Anjargolian" <ara@jargol.com> writes:
> jargol=# explain select user_id, first_names, last_name from articles, users
> where article_id = 5027 and (articles.author_id1 = users.user_id or
> articles.author_id2 = users.user_id);

> Why does it think it MUST do a seq-scan in the second case?

There's no support for generating an OR indexscan in the context of a
join.

            regards, tom lane

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: postgres eating CPU on HP9000
Next
From: "scott.marlowe"
Date:
Subject: Re: postgres eating CPU on HP9000