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

From Tom Lane
Subject Re: WIP patch for LATERAL subqueries
Date
Msg-id 1571.1346474630@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIP patch for LATERAL subqueries  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> This is just awesome.  Anyways, I was looking around the docs for
> references to the old methodology of select list SRF function calls.
> This paragraph:
> http://www.postgresql.org/docs/devel/static/xfunc-sql.html#XFUNC-SQL-FUNCTIONS-RETURNING-SET

> could probably use some enhancement describing best practices in a
> LATERAL world and more examples of dealing with set returning
> functions in general.

Done, thanks for the suggestion.

> I also noticed that the build in SRF page
> (http://www.postgresql.org/docs/devel/static/functions-srf.html) lies
> with the comment "This section describes functions that possibly
> return more than one row. Currently the only functions in this class
> are series generating functions" since at minimum we have 'unnest' so
> that page could use some wordsmithing as well.

Yeah, there's also some regexp-related SRFs, as well as a boatload of
built-in SRFs that are mainly meant to underlie views.  I guess we could
try to force all of those into this page, but it doesn't really seem
like it'd be an improvement.  I took out the claim that these were all
such functions, instead.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Does the SQL standard actually define LATERAL anywhere?
Next
From: Pavel Stehule
Date:
Subject: Re: Does the SQL standard actually define LATERAL anywhere?