Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7647AF497B6 for ; Mon, 27 Feb 2012 07:40:16 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S1yw4-0002pU-RF for pgsql-bugs@postgresql.org; Mon, 27 Feb 2012 11:40:13 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S1yvr-0004j4-N8 for pgsql-bugs@postgresql.org; Mon, 27 Feb 2012 11:39:55 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1S1yvr-0002PZ-2P for pgsql-bugs@postgresql.org; Mon, 27 Feb 2012 11:39:55 +0000 Date: Mon, 27 Feb 2012 11:39:55 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6490: Not checking column existence in sub query To: pgsql-bugs@postgresql.org From: anisimovt@gmail.com X-Pg-Spam-Score: -1.0 (-) X-Archive-Number: 201202/189 X-Sequence-Number: 32532 The following bug has been logged on the website: Bug reference: 6490 Logged by: Timofey Anisimov Email address: anisimovt@gmail.com PostgreSQL version: 9.1.2 Operating system: Linux = Description: = SELECT * FROM table1 where col1 in (select col2 from table2) if col2 exist in table1 and not exist in table2 there will be no error and query output all rows from table1;