From: Mario Splivalo <mario.splivalo@megafon.hr>
To: pgsql-sql@postgresql.org
Subject: Re: Subselect strange behaviour - bug?
Date: Mon, 17 Mar 2008 13:04:43 +0100
Message-ID: <47DE5E5B.60203@megafon.hr> (raw)
In-Reply-To: <430.1205692088@sss.pgh.pa.us>
References: <47DD5D3A.6060100@megafon.hr>
<430.1205692088@sss.pgh.pa.us>
Tom Lane wrote:
> Mario Splivalo <mario.splivalo@megafon.hr> writes:
>
>> And here is the 'problematic' query:
>> melem=# select * from t2 where id1 in (select id1 from t1);
>>
>> I guess postgres should tell me that column name id1 is nonexistant in
>> table t1.
>>
>
> No, it shouldn't, because that's a perfectly legal outer reference;
> that is, what you wrote is equivalent to
> select * from t2 where id1 in (select t2.id1 from t1);
>
>
Huh, you're right. Appologies for the noise :)
Mario
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mario.splivalo@megafon.hr
Subject: Re: Subselect strange behaviour - bug?
In-Reply-To: <47DE5E5B.60203@megafon.hr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox