Re: A fine point about OUTER JOIN semantics - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: A fine point about OUTER JOIN semantics
Date
Msg-id 39B09C2A.FEBC6B85@alumni.caltech.edu
Whole thread Raw
In response to A fine point about OUTER JOIN semantics  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: A fine point about OUTER JOIN semantics
List pgsql-hackers
> Am I right in thinking that the WHERE clause of a query must logically
> be applied *after* any joins specified in the FROM clause?
...
> This shows that JOIN/ON conditions for outer joins are not semantically
> interchangeable with WHERE conditions.

Right. In some cases, an outer join with WHERE restrictions reduces to
an inner join (so the qualification clauses can be consolidated). Our
optimizer should be on the lookout for that, at least eventually.
                     - Thomas


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Backend-internal SPI operations
Next
From: Thomas Lockhart
Date:
Subject: (Slightly) broken makefiles