Re: lateral function as a subquery - WIP patch

From: Antonin Houska <antonin(dot)houska(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: lateral function as a subquery - WIP patch
Date: 2012-03-10 17:03:48
Message-ID: 4F5B8974.9090301@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03/10/2012 02:15 AM, Tom Lane wrote:
> Um ... how do you get the subquery result rows to join to only the
> correct rows of the other tables?
The subquery just restricts the set of rows that the function has to
evaluate. The main query is supposed to perform the join.
I understand, such a join causes repeated scan of the function if the
function is on the inner side.
> This looks like an unconstrained join
> to me, which is not what I believe the SQL spec for LATERAL to be,
o.k., then just forget about my proposal. Thanks for your comments anyway,

Tony H.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2012-03-10 17:13:17 Re: pgsql_fdw, FDW for PostgreSQL server
Previous Message Marti Raudsepp 2012-03-10 17:00:37 Re: Caching for stable expressions with constant arguments v6