Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UvZw0-00039L-JT for pgsql-bugs@arkaria.postgresql.org; Sat, 06 Jul 2013 21:22:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UvZvz-00049x-P7 for pgsql-bugs@arkaria.postgresql.org; Sat, 06 Jul 2013 21:22:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UvZvy-00049q-Pb for pgsql-bugs@postgresql.org; Sat, 06 Jul 2013 21:22:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UvZvs-0005ZO-ES for pgsql-bugs@postgresql.org; Sat, 06 Jul 2013 21:22:22 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r66LMEGp026182; Sat, 6 Jul 2013 17:22:14 -0400 (EDT) From: Tom Lane To: lindebg@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8287: select distinct / select group by - Invalid result In-reply-to: References: Comments: In-reply-to lindebg@gmail.com message dated "Sat, 06 Jul 2013 20:41:39 -0000" Date: Sat, 06 Jul 2013 17:22:14 -0400 Message-ID: <26181.1373145734@sss.pgh.pa.us> X-Pg-Spam-Score: 0.8 (/) 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 lindebg@gmail.com writes: > I wanted to report an incorrect execution of the query SELECT DISTINCT... : FWIW, this example doesn't seem to misbehave for me in HEAD or 9.2 branch tip. I suspect that this is a variant of bug #8049, which was fixed recently. It could be though that you're reporting some other problem but there are special circumstances (such as nondefault planner settings) needed to make it manifest. You could try applying this patch to see if the problem goes away for you: http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=841c9b6ba151ed5a41733ec345bf9bf32a55f4dc 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