Re: Question on OUTER JOINS.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question on OUTER JOINS.
Дата
Msg-id 16131.1056780183@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Question on OUTER JOINS.  (Ludwig Lim <lud_nowhere_man@yahoo.com>)
Ответы Re: Question on OUTER JOINS.  (Ludwig Lim <lud_nowhere_man@yahoo.com>)
Список pgsql-sql
Ludwig Lim <lud_nowhere_man@yahoo.com> writes:
>   1) Is the ON clause of an OUTER JOIN always
> evaluated first before the WHERE clause?

No; the planner will do whatever it thinks is the most efficient way
(assuming it can prove that the reordering it wants to do won't change
the query result).

>   Is there a way to rewrite the query as a view such
> that one can do:

I'm really not clear on what you want here.  Better example please?
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Ludwig Lim
Дата:
Сообщение: Question on OUTER JOINS.
Следующее
От: Ludwig Lim
Дата:
Сообщение: Re: Question on OUTER JOINS.