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 6E597534CC for ; Wed, 27 Apr 2005 01:14:48 -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 18484-03 for ; Wed, 27 Apr 2005 04:14:45 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id DFCD353392 for ; Wed, 27 Apr 2005 01:14:44 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3R4EaKP017678; Wed, 27 Apr 2005 00:14:36 -0400 (EDT) To: Rod Taylor Cc: Greg Stark , pgsql-hackers@postgresql.org, Gurmeet Manku Subject: Re: [PERFORM] Bad n_distinct estimation; hacks suggested? In-reply-to: <1114560992.77587.112.camel@home> References: <87u0lt5efo.fsf@stark.xeocode.com> <1114557011.77587.107.camel@home> <87oec15d9m.fsf@stark.xeocode.com> <1114560992.77587.112.camel@home> Comments: In-reply-to Rod Taylor message dated "Tue, 26 Apr 2005 20:16:32 -0400" Date: Wed, 27 Apr 2005 00:14:36 -0400 Message-ID: <17677.1114575276@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/879 X-Sequence-Number: 66748 Rod Taylor writes: > If when we have partitions, that'll be good enough. If partitions aren't > available this would be quite painful to anyone with large tables -- > much as the days of old used to be painful for ANALYZE. Yeah ... I am very un-enthused about these suggestions to make ANALYZE go back to doing a full scan ... regards, tom lane