Re: LATERAL, UNNEST and spec compliance - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: LATERAL, UNNEST and spec compliance
Date
Msg-id 20130125194645.GW16126@tamriel.snowman.net
Whole thread Raw
In response to Re: LATERAL, UNNEST and spec compliance  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: LATERAL, UNNEST and spec compliance
List pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> SELECT ... FROM a WHERE a.x IN (SELECT ... FROM b, srf(y) WHERE ...)

Actually, this appears to fail already, at least in 9.2.2:

=> select * from (values (1)) v(a) where v.a in (select x from (values (2)) v2(a),
->                     generate_series(1,a) x);
ERROR:  function expression in FROM cannot refer to other relations of same query level
LINE 2:                     generate_series(1,a) x);                                             ^

Unless it's something else that you were referring to...?
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: setting per-database/role parameters checks them against wrong context
Next
From: Jeff Janes
Date:
Subject: Re: COPY FREEZE has no warning