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 E850B3A579B for ; Tue, 25 Jan 2005 18:41:19 +0000 (GMT) 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 02543-10 for ; Tue, 25 Jan 2005 18:41:17 +0000 (GMT) Received: from web30303.mail.mud.yahoo.com (web30303.mail.mud.yahoo.com [68.142.200.96]) by svr1.postgresql.org (Postfix) with SMTP id E51E63A5792 for ; Tue, 25 Jan 2005 18:41:16 +0000 (GMT) Received: (qmail 1350 invoked by uid 60001); 25 Jan 2005 18:41:16 -0000 Message-ID: <20050125184116.1348.qmail@web30303.mail.mud.yahoo.com> Received: from [63.78.249.254] by web30303.mail.mud.yahoo.com via HTTP; Tue, 25 Jan 2005 10:41:16 PST Date: Tue, 25 Jan 2005 10:41:16 -0800 (PST) From: Litao Wu Subject: Re: reltuples after vacuum and analyze To: Tom Lane Cc: pgsql-performance@postgresql.org In-Reply-To: <5589.1106677986@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.802 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, FORGED_YAHOO_RCVD X-Spam-Level: * X-Archive-Number: 200501/482 X-Sequence-Number: 10172 I know it is accurate. My question is why the table takes 2023024KB after analyzed? And why it does not shink to 30088 after vacuumed? I know "vacuum full verbose" will force it shrink to reasonable size. But I do not understand why "analyze" bloats the table size so big?? Please note all above commands are done within minutes and I truely do not believe the table of 189165 rows takes that much space. Furthermore, I notice last weekly "vacuum full" even did not reclaim the space back. Thanks, --- Tom Lane wrote: > Litao Wu writes: > > Then how to explain relpages > > (size_kb in result returned)? > > relpages should be accurate in either case, since we > get that by asking > the kernel (lseek). > > regards, tom lane > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com