Re: odd planner choice

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ara Anjargolian" <ara(at)jargol(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: odd planner choice
Date: 2004-03-26 23:08:54
Message-ID: 28299.1080342534@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Ara Anjargolian" <ara(at)jargol(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2004-03-26 23:11:22 Re: postgres eating CPU on HP9000
Previous Message scott.marlowe 2004-03-26 22:20:00 Re: odd planner choice