From: Andres Freund <andres@anarazel.de>
To: chris@chrullrich.net
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13336: Unexpected result from invalid query
Date: Sat, 23 May 2015 02:12:27 +0200
Message-ID: <20150523001227.GA32396@alap3.anarazel.de> (raw)
In-Reply-To: <20150523000527.17709.45231@wrigleys.postgresql.org>
References: <20150523000527.17709.45231@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
On 2015-05-23 00:05:27 +0000, chris@chrullrich.net wrote:
> -- Note: No column "foo" in test_table2
> postgres=# select * from test_table where foo in (select foo from
> test_table2);
> foo | bar
> -----+-----
> one | 1
> two | 2
That's not a bug. In a good number of subqueries you need access fields
from the surrounding query.
Greetings,
Andres Freund
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andres@anarazel.de, chris@chrullrich.net
Subject: Re: BUG #13336: Unexpected result from invalid query
In-Reply-To: <20150523001227.GA32396@alap3.anarazel.de>
References: <20150523000527.17709.45231@wrigleys.postgresql.org> <20150523001227.GA32396@alap3.anarazel.de>
* 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