X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 88C8653997; Tue, 26 Apr 2005 17:40:43 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10765-10; Tue, 26 Apr 2005 20:40:42 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id BC84953956; Tue, 26 Apr 2005 17:40:40 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [67.103.46.98] (account josh@agliodbs.com HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 7288695; Tue, 26 Apr 2005 13:42:41 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Simon Riggs Subject: Re: [HACKERS] Bad n_distinct estimation; hacks suggested? Date: Tue, 26 Apr 2005 13:45:53 -0700 User-Agent: KMail/1.7.1 Cc: Tom Lane , Greg Stark , Marko Ristola , pgsql-perform , pgsql-hackers@postgresql.org References: <200504191209.05181.josh@agliodbs.com> <25382.1114318139@sss.pgh.pa.us> <1114547498.21529.349.camel@localhost.localdomain> In-Reply-To: <1114547498.21529.349.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504261345.54164.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/705 X-Sequence-Number: 12102 Simon, > Could it be that we have overlooked this simple explanation and that the > Haas and Stokes equation is actually quite good, but just not being > applied? That's probably part of it, but I've tried Haas and Stokes on a pure random sample and it's still bad, or more specifically overly conservative. -- --Josh Josh Berkus Aglio Database Solutions San Francisco