Re: Does the SQL standard actually define LATERAL anywhere?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Does the SQL standard actually define LATERAL anywhere?
Date: 2012-09-27 00:55:40
Message-ID: 10027.1348707340@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On Sat, 2012-09-01 at 00:29 -0400, Tom Lane wrote:
>> this is a spec-defined syntax so surely the SQL standard ought to tell
>> us what to do. But I'm darned if I see anything in the standard that
>> defines the actual *behavior* of a LATERAL query.

> I have it another read and couldn't find anything either. As written,
> LATERAL is effectively a noise word, AFAICT.

It's not a noise word --- its effects on scope of name visibility are
spelled out clearly enough. What is not clear is what the query
semantics are supposed to be in the presence of references that would
be disallowed in the traditional understanding of a FROM clause.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2012-09-27 00:59:58 Re: Switching timeline over streaming replication
Previous Message Josh Berkus 2012-09-27 00:48:46 Re: Switching timeline over streaming replication