Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YBrHZ-0006F2-24 for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Jan 2015 20:44:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YBrHY-0002N2-Ba for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Jan 2015 20:44:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YBnrP-0008NS-6N for pgsql-bugs@postgresql.org; Thu, 15 Jan 2015 17:05:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YBnrM-0006B8-0x for pgsql-bugs@postgresql.org; Thu, 15 Jan 2015 17:05:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t0FH5Q87006446; Thu, 15 Jan 2015 12:05:26 -0500 From: Tom Lane To: kevin.perais@trivia-marketing.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12556: Clause IN and NOT IN buggy In-reply-to: <20150115112720.2502.55131@wrigleys.postgresql.org> References: <20150115112720.2502.55131@wrigleys.postgresql.org> Comments: In-reply-to kevin.perais@trivia-marketing.com message dated "Thu, 15 Jan 2015 11:27:20 +0000" Date: Thu, 15 Jan 2015 12:05:26 -0500 Message-ID: <6445.1421341526@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org kevin.perais@trivia-marketing.com writes: > I've been noticing several times that clauses IN and NOT IN are often buggy. None of your examples demonstrate any such thing. What's much more likely is that you've forgotten about NOT IN's weird (but spec-mandated) behavior with NULLs, and/or misspelled a field name so that the output of the sub-SELECT is actually an outer reference. > I'll show you 2 concrete cases to illustrate that. My idea of a "concrete case" would be something that someone else could reproduce from the given information, which would certainly require test data. 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