X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D89BE568B7 for ; Thu, 17 Mar 2005 23:36:09 +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 20762-02 for ; Thu, 17 Mar 2005 23:36:08 +0000 (GMT) Received: from polaris.pinpointresearch.com (66-7-238-130.cust.telepacific.net [66.7.238.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7F0DF568B6 for ; Thu, 17 Mar 2005 23:36:07 +0000 (GMT) Received: from betelgeuse.pinpointresearch.com (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id AAB8F1038E for ; Thu, 17 Mar 2005 15:36:10 -0800 (PST) From: Steve Crawford Organization: Pinpoint Research To: Subject: Re: Excessive growth of pg_attribute and other system tables Date: Thu, 17 Mar 2005 15:36:10 -0800 User-Agent: KMail/1.5.1 References: <200503171515.38214.scrawford@pinpointresearch.com> In-Reply-To: <200503171515.38214.scrawford@pinpointresearch.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503171536.10389.scrawford@pinpointresearch.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.101 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/278 X-Sequence-Number: 16776 On Thursday 17 March 2005 3:15 pm, Steve Crawford wrote: > I'm having trouble with physical growth of postgresql system > tables.... Additional info. The most recent autovacuum entries for the pg_attribute table are: [2005...] Performing: VACUUM ANALYZE "pg_catalog"."pg_attribute" [2005...] table name: tati."pg_catalog"."pg_attribute" [2005...] relid: 1249; relisshared: 0 [2005...] reltuples: 9334.000000; relpages: 82282 [2005...] curr_analyze_count: 6647115; curr_vacuum_count: 861454 [2005...] last_analyze_count: 6647115; last_vacuum_count: 861454 [2005...] analyze_threshold: 9834; vacuum_threshold: 19668 and [2005...] Performing: ANALYZE "pg_catalog"."pg_attribute" [2005...] table name: foo."pg_catalog"."pg_attribute" [2005...] relid: 1249; relisshared: 0 [2005...] reltuples: 4843240.000000; relpages: 82284 [2005...] curr_analyze_count: 6657041; curr_vacuum_count: 862897 [2005...] last_analyze_count: 6657041; last_vacuum_count: 861454 [2005...] analyze_threshold: 4843740; vacuum_threshold: 19668 (Both within past 1 day - dates truncated to avoid line-wrap.) The table currently has just over 9,000 tuples and I have no reason to believe that should have changed substantially. The thresholds and counts seem way off - especially in the second pass. Cheers, Steve