X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 321F45381D; Tue, 3 May 2005 21:51:51 -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 45468-05; Wed, 4 May 2005 00:51:48 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id 9D4A5533FC; Tue, 3 May 2005 21:51:48 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [64.81.245.111] (account josh@agliodbs.com HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 7317551; Tue, 03 May 2005 17:53:51 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: John A Meinel Subject: Re: [PERFORM] Bad n_distinct estimation; hacks suggested? Date: Tue, 3 May 2005 17:52:54 -0700 User-Agent: KMail/1.7.1 Cc: Mischa Sandberg , Markus Schaber , pgsql-perform , pgsql-hackers@postgresql.org References: <200504191209.05181.josh@agliodbs.com> <200505031443.44859.josh@agliodbs.com> <42781B1D.7070101@arbash-meinel.com> In-Reply-To: <42781B1D.7070101@arbash-meinel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505031752.54293.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.047 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/264 X-Sequence-Number: 67140 John, > But doesn't an index only sample one column at a time, whereas with > page-based sampling, you can sample all of the columns at once. Hmmm. Yeah, we're not currently doing that though. Another good idea ... -- --Josh Josh Berkus Aglio Database Solutions San Francisco