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 94BBBD1B8DE for ; Tue, 23 Sep 2003 23:44:00 +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 64953-06 for ; Tue, 23 Sep 2003 20:43:53 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 47302D1B4FF for ; Tue, 23 Sep 2003 20:43:49 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8NNhpiP025227; Tue, 23 Sep 2003 19:43:51 -0400 (EDT) To: nickf@ontko.com Cc: "pgsql-admin" Subject: Re: Problem with n_distinct being consistently inaccurate. In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Tue, 23 Sep 2003 16:05:58 -0500" Date: Tue, 23 Sep 2003 19:43:50 -0400 Message-ID: <25226.1064360630@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/370 X-Sequence-Number: 10458 "Nick Fankhauser" writes: > Neither one makes a change- perhaps something else is at work here- my > understanding of the finer points of query plans is shaky- Here is the query > and the plan I'm getting: Well, one thing that's not a fine point is that if you are complaining about poor planning, it's important to offer EXPLAIN ANALYZE output not just EXPLAIN output ... the difference between the planner's ideas and reality is exactly the issue ... regards, tom lane