Re: Question on OUTER JOINS.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
Cc: PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Question on OUTER JOINS.
Date: 2003-06-28 06:03:03
Message-ID: 16131.1056780183@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ludwig Lim <lud_nowhere_man(at)yahoo(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ludwig Lim 2003-06-28 06:16:18 Re: Question on OUTER JOINS.
Previous Message Ludwig Lim 2003-06-28 05:45:47 Question on OUTER JOINS.