From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> |
Cc: | Dario Bahena Tapia <dario(dot)mx(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Parentheses in FROM clause and evaluation order. |
Date: | 2005-08-16 02:02:40 |
Message-ID: | 20489.1124157760@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> writes:
> On Mon, 15 Aug 2005, Dario Bahena Tapia wrote:
>> The final result seems to be the same, I just was curious about the
>> standard behavior. Does the SQl says something about this execution
>> order?
> I believe SQL defines the order to pay attention to parens, so A join (B
> join C) style clauses result in a "table" being derived from B join C and
> another from A joined with that table.
SQL only constrains the results, though. It does not forbid the
implementation from doing the work in whatever way seems best to it,
so long as the results are the same (and "same" does not consider
row ordering).
For example, SQL92 3.3.4.4 says
A conforming implementation is not required to perform the exact
sequence of actions defined in the General Rules, but shall achieve
the same effect on SQL-data and schemas as that sequence.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Dario Bahena Tapia | 2005-08-16 02:20:35 | Re: Parentheses in FROM clause and evaluation order. |
Previous Message | Stephan Szabo | 2005-08-16 01:48:28 | Re: Parentheses in FROM clause and evaluation order. |