Re: Forward referencing of table aliases in subqueries does not work in 9.1 beta2 ( works in 9.0 and 8.4.2 )

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: BangarRaju Vadapalli <BangarRaju(dot)Vadapalli(at)infor(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Forward referencing of table aliases in subqueries does not work in 9.1 beta2 ( works in 9.0 and 8.4.2 )
Date: 2011-06-20 19:06:27
Message-ID: 2488.1308596787@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

BangarRaju Vadapalli <BangarRaju(dot)Vadapalli(at)infor(dot)com> writes:
> create table a(x int);
> create table b(x int, y int);
> create table c(x int, y int, z int);
> This query fails with ERROR: JOIN qualification cannot refer to other relations - select a.x from a, b where a.x = b.x and not exists ( select 1 from c where b.y = c.y and not exists ( select 1 from c where a.x = c.x))

Thanks, I've applied a patch for this.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hyelluas 2011-06-20 19:18:49 Re: how to find a tablespace for the table?
Previous Message Raghavendra 2011-06-20 19:02:20 Re: how to find a tablespace for the table?