pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christian Ullrich <chris@chrullrich.net>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13336: Unexpected result from invalid query
Date: Fri, 22 May 2015 21:14:49 -0400
Message-ID: <21081.1432343689@sss.pgh.pa.us> (raw)
In-Reply-To: <AM2PR06MB0690F494EDEBCDF868475B66D4CF0@AM2PR06MB0690.eurprd06.prod.outlook.com>
References: <20150523000527.17709.45231@wrigleys.postgresql.org>
	<20150523001227.GA32396@alap3.anarazel.de>
	<AM2PR06MB0690F494EDEBCDF868475B66D4CF0@AM2PR06MB0690.eurprd06.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Christian Ullrich <chris@chrullrich.net> writes:
> Hm. That makes some sense, I guess. But is that true even if the reference in the subquery is not explicitly qualified? "SELECT foo FROM test_table2" looks to me like it refers to that table pretty unequivocally.

This behavior is required by the SQL standard ...

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)

Message-ID: <21081.1432343689@sss.pgh.pa.us>
Permalink:  ../21081.1432343689@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21081.1432343689@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, chris@chrullrich.net, andres@anarazel.de
  Subject: Re: BUG #13336: Unexpected result from invalid query
  In-Reply-To: <21081.1432343689@sss.pgh.pa.us>
  References: <20150523000527.17709.45231@wrigleys.postgresql.org> <20150523001227.GA32396@alap3.anarazel.de> <AM2PR06MB0690F494EDEBCDF868475B66D4CF0@AM2PR06MB0690.eurprd06.prod.outlook.com> <21081.1432343689@sss.pgh.pa.us>

* 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