X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 85DDFD1B4F9 for ; Wed, 24 Sep 2003 15:09:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 56622-09 for ; Wed, 24 Sep 2003 12:08:55 -0300 (ADT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by svr1.postgresql.org (Postfix) with ESMTP id 5948FD1B4FC for ; Wed, 24 Sep 2003 12:08:55 -0300 (ADT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian-6.6) with SMTP id h8OF8W5h030536; Wed, 24 Sep 2003 10:08:39 -0500 Reply-To: From: "Nick Fankhauser" To: "Tom Lane" Cc: "pgsql-admin" Subject: Re: Problem with n_distinct being consistently inaccurate. Date: Wed, 24 Sep 2003 10:07:51 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <25226.1064360630@sss.pgh.pa.us> Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/399 X-Sequence-Number: 10487 Tom- Thanks for helping me work through my question about the effect of n_distinct. Now that I understand how little this statistic affects the query plan, I'm going to spend some time trying to puzzle it out more on my own before coming back to the list for advice. Thanks also for pointing out that I should be using explain analyze instead of explain. I didn't realize the option existed until you pointed it out, and will use it henceforth. I apologize if the tone of my messages sounded like complaining. My interest is simply to find a solution to a problem I'm having in my production environment. Problems with Postgres are few, but when I run into something I don't understand, I value your willingness to help out and certainly don't want to imply that I'm complaining to the folks who have provided me with a free database and more importantly, free education and support. Thanks (I mean it!) -Nick --------------------------------------------------------------------- Nick Fankhauser nickf@doxpop.com Phone 1.765.965.7363 Fax 1.765.962.9788 doxpop - Court records at your fingertips - http://www.doxpop.com/