Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 37007B5DBC6 for ; Mon, 8 Aug 2011 11:37:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 82536-05 for ; Mon, 8 Aug 2011 14:37:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp3.mail.ru (smtp3.mail.ru [94.100.176.131]) by mail.postgresql.org (Postfix) with ESMTP id BDBFCB5DBDE for ; Mon, 8 Aug 2011 11:37:18 -0300 (ADT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:In-Reply-To:References:To:From; bh=5H1UL1vMBtLbc4Ca8BfzlvSSbhiRxiMeE3uDNk4Q1cI=; b=0mIUo7jcuNac4NrFDuOsZ1kz4ZBvUIgoMau7WDJgAHHMTLMnsbqDQ5ab2QVhqYX38yJqOaz0ePN4nfKd+XSEtY17nJzdDfP3i9/t78kKAmUmEh96ikjaCFxVLbMttxtE; Received: from [180.183.160.156] (port=28425 helo=ws) by smtp3.mail.ru with asmtp id 1QqQxA-0006x5-00; Mon, 08 Aug 2011 18:37:17 +0400 From: "ai" To: "'Kevin Grittner'" , References: <201108081313.p78DDX6W021751@wwwmaster.postgresql.org> <4E3FA39B020000250003FC1F@gw.wicourts.gov> In-Reply-To: <4E3FA39B020000250003FC1F@gw.wicourts.gov> Subject: Re: BUG #6154: wrong result with nested left-joins Date: Mon, 8 Aug 2011 21:37:07 +0700 Message-ID: <01b401cc55d8$ab9f9140$02deb3c0$@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKtBagl8fgbDVr+0xwL5rgFD0w44gLDzn4lkzuBBMA= Content-Language: ru X-Spam: Not detected X-Mras: Ok X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201108/65 X-Sequence-Number: 30877 Kevin, thanks a lot for your answer! As my servers are production systems and as I have an acceptable workaround for my needs, I will wait around with a postgresql upgrade =) I just tried to help with discovering of a potential bug =)) Anyway I'm very glad to know, that in new version it's not an issue already =) Kind regards Alexey Isaiko Television department consultant All-Russian Research Institute of TV and Radio Broadcasting Russian Media Group TV-channels: RUTV, Hip Hop Hit -----Original Message----- From: Kevin Grittner [mailto:Kevin.Grittner@wicourts.gov] Sent: Monday, August 08, 2011 8:52 PM To: listar; pgsql-bugs@postgresql.org Subject: Re: [BUGS] BUG #6154: wrong result with nested left-joins "listar" wrote: > PostgreSQL version: 8.4.5 > Description: wrong result with nested left-joins > And this is the problem - value2 can't be NULL because of COALESCE in > sub4 (at least I think that it can't be =)) This works correctly in release 9.0.4 and development HEAD. I don't still have any machines handy which are running 8.4, but you might want to try it on the latest bug-fix version of 8.4 (currently 8.4.8) to see if the fix was back-patched. http://www.postgresql.org/support/versioning -Kevin