Re: odd planner choice

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: odd planner choice
Дата
Msg-id 28299.1080342534@sss.pgh.pa.us
обсуждение исходный текст
Ответ на odd planner choice  ("Ara Anjargolian" <ara@jargol.com>)
Список 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 по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: postgres eating CPU on HP9000
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: postgres eating CPU on HP9000