X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0E224D8716 for ; Wed, 31 Aug 2005 00:52:28 -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 75468-05 for ; Wed, 31 Aug 2005 03:52:24 +0000 (GMT) Received: from mail.winklerpartners.com (mail.winklerpartners.com [61.220.82.206]) by svr1.postgresql.org (Postfix) with ESMTP id 1A8E7D8659 for ; Wed, 31 Aug 2005 00:52:20 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.winklerpartners.com (Postfix) with ESMTP id 72C1E9344A for ; Wed, 31 Aug 2005 11:52:19 +0800 (CST) Received: from mail.winklerpartners.com ([127.0.0.1]) by localhost (mail.winklerpartners.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19760-07 for ; Wed, 31 Aug 2005 11:52:19 +0800 (CST) Received: from [192.168.0.184] (unknown [192.168.0.184]) by mail.winklerpartners.com (Postfix) with ESMTP id 573249333E for ; Wed, 31 Aug 2005 11:52:19 +0800 (CST) Message-ID: <43152971.1030508@winklerpartners.com> Date: Wed, 31 Aug 2005 11:52:17 +0800 From: Michael Fahey User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Disk Usage Problem Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at winklerpartners.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200508/407 X-Sequence-Number: 18726 My database cluster at 22 GB is outgrowing the 30 GB partition I set aside for it. I periodically dump the cluster to a development server, but when it is loaded onto the development server, the cluster takes up just 145MB. I use temporary tables fairly extensively in a key part of the application. Here are the biggest tables in the production system: relname | relfilenode | relpages ---------------------------------+-------------+---------- pg_attribute_relid_attnam_index | 16609 | 2519264 pg_attribute_relid_attnum_index | 16610 | 98014 pg_class_relname_nsp_index | 16614 | 25220 I'm using 7.4.7-6sarge1 . I vacuum nightly and do a full vacuum weekly, but this doesn't seem to have any effect on size. TIA Michael