Re: WIP patch for LATERAL subqueries - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WIP patch for LATERAL subqueries
Date
Msg-id 10001.1344264473@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIP patch for LATERAL subqueries  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Apparently Sybase and Microsoft SQL server use a slightly different
> syntax, CROSS APPLY, for this.

> http://iablog.sybase.com/paulley/2008/07/cross-and-outer-apply/

Well, this is only a blog entry and not their manual, but AFAICT that is
just a useless deviation from SQL-standard syntax; it does nothing that
"CROSS JOIN LATERAL" or "LEFT JOIN LATERAL ... ON true" wouldn't do.
I can't tell if the blogger simply doesn't know that LATERAL can be used
in a JOIN nest, or if that's actually a misfeature of the DBMS.

I'm not in favor of duplicating this.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: WIP patch for LATERAL subqueries
Next
From: Heikki Linnakangas
Date:
Subject: Re: SP-GiST for ranges based on 2d-mapping and quad-tree