From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ara Anjargolian <ara@jargol.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: odd planner choice
Date: Fri, 26 Mar 2004 18:08:54 -0500
Message-ID: <28299.1080342534@sss.pgh.pa.us> (raw)
In-Reply-To: <001401c412f6$88281700$6401a8c0@ARA>
References: <001401c412f6$88281700$6401a8c0@ARA>
"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
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, ara@jargol.com
Subject: Re: odd planner choice
In-Reply-To: <28299.1080342534@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