Re: Question on OUTER JOINS. - Mailing list pgsql-sql

From Tom Lane
Subject Re: Question on OUTER JOINS.
Date
Msg-id 16131.1056780183@sss.pgh.pa.us
Whole thread Raw
In response to Question on OUTER JOINS.  (Ludwig Lim <lud_nowhere_man@yahoo.com>)
Responses Re: Question on OUTER JOINS.
List 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 by date:

Previous
From: Ludwig Lim
Date:
Subject: Question on OUTER JOINS.
Next
From: Ludwig Lim
Date:
Subject: Re: Question on OUTER JOINS.