Re: join functions

From: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
To: Zotov <zotov(at)oe-it(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: join functions
Date: 2011-01-07 10:01:44
Message-ID: AANLkTikvt8H1AqnVJtXf90XmGepUgbD6dfNZKFLHd3BM@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2011/1/5 Zotov <zotov(at)oe-it(dot)ru>:

> Why doesn`t work this query?
> select table1.field1, func1.field2 from table1 left outer join
> func1(table1.field1) on true where func1.field3 in (20, 100);
>
> If i have other than LEFT OUTER JOIN I can understand why
>   ERROR:  invalid reference to FROM-clause entry for table "table1"
>
> but why here?
>   for each row of table1 just evaluate func1(table1.field1)

That seems like a use case for LATERAL, which is not supported yet.

Some recent discussion seems to be
<URL:http://archives.postgresql.org/pgsql-hackers/2009-09/msg00292.php>.

Nicolas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2011-01-07 10:20:35 Re: system views for walsender activity
Previous Message Dimitri Fontaine 2011-01-07 08:24:23 Re: making an unlogged table logged