Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 11EDE1337B34 for ; Mon, 14 Feb 2011 23:27:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 78875-02 for ; Tue, 15 Feb 2011 03:27:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 7A3A2133740B for ; Mon, 14 Feb 2011 23:27:31 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p1F3RVmF027063; Mon, 14 Feb 2011 22:27:31 -0500 (EST) To: "Maxim Boguk" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5885: Strange rows estimation for left join In-reply-to: <201102150243.p1F2hHge058708@wwwmaster.postgresql.org> References: <201102150243.p1F2hHge058708@wwwmaster.postgresql.org> Comments: In-reply-to "Maxim Boguk" message dated "Tue, 15 Feb 2011 02:43:17 +0000" Date: Mon, 14 Feb 2011 22:27:31 -0500 Message-ID: <27062.1297740451@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/130 X-Sequence-Number: 29402 "Maxim Boguk" writes: > I found that strange effect while helping with slow query on russian > postgresql online forum. Please try to put together a self-contained test case for this. I could not reproduce such a weird result here, but that probably just means there's something strange about your data distribution. regards, tom lane