Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQjoj-0001EF-0P for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Feb 2016 22:53:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQjoi-0000vR-JC for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Feb 2016 22:53:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aQjo6-0008MA-3Z for pgsql-bugs@postgresql.org; Tue, 02 Feb 2016 22:52:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aQjo3-0002v4-OC for pgsql-bugs@postgresql.org; Tue, 02 Feb 2016 22:52:20 +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 u12MqGcg022338; Tue, 2 Feb 2016 17:52:16 -0500 From: Tom Lane To: seth-p@outlook.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13908: Query returns too few rows In-reply-to: <20160202194729.2776.92152@wrigleys.postgresql.org> References: <20160202194729.2776.92152@wrigleys.postgresql.org> Comments: In-reply-to seth-p@outlook.com message dated "Tue, 02 Feb 2016 19:47:29 +0000" Date: Tue, 02 Feb 2016 17:52:16 -0500 Message-ID: <22337.1454453536@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) 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 seth-p@outlook.com writes: > Query (A-D) (with DISTINCT) should not return more rows than query (A) (the > identical query without DISTINCT), so clearly something is wrong there. That does seem fishy, but unless you can provide a self-contained test case, it's unlikely that we are going to be able to magically locate the problem. I'd suggest seeing if you can reproduce the issue with some obfuscated or randomly-generated 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