Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3C299475C02 for ; Fri, 23 Aug 2002 14:15:06 -0400 (EDT) Received: from dilbert.nurseamerica.net (unknown [207.53.237.114]) by postgresql.org (Postfix) with ESMTP id BCC54475B7A for ; Fri, 23 Aug 2002 14:15:05 -0400 (EDT) Received: from alice.nurseamerica.local (airband-216-138-83-219.airband.net [216.138.83.219] (may be forged)) by dilbert.nurseamerica.net (8.11.6/8.11.6) with ESMTP id g7NIF5g04944 for ; Fri, 23 Aug 2002 13:15:05 -0500 Received: from nurseamerica.net ([192.168.0.17]) by alice.nurseamerica.local with Microsoft SMTPSVC(5.0.2195.5329); Fri, 23 Aug 2002 13:15:05 -0500 Message-ID: <3D667BA7.3090202@nurseamerica.net> Date: Fri, 23 Aug 2002 13:15:03 -0500 From: Kevin Brannen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Boes Cc: pgsql-admin@postgresql.org Subject: Re: PG 7.2 on Linux: where's the space? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Aug 2002 18:15:05.0142 (UTC) FILETIME=[015F0560:01C24AD1] X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/293 X-Sequence-Number: 5407 Jeff Boes wrote: > We upgraded from 7.1 to 7.2 recently, and saw the used space on our > database partition drop from something like 80% to under 20% (as > measured by 'du'). Hurrah! However, it's about four weeks later and > we're back to over 80% again. Is the solution: This has been discussed a fair bit recently. I'll try attempt to help, though I'm sure others are much more qualified. > > 1) More frequent VACUUM FULL operations? Possibly. However, it's been noted that if you do a lot of deletes and/or updates so that you have a lot of "dead" tuples, you probably need to increase your "fsm_*" parameters. Search the newsgroup archive for their names for advice on size. > > 2) REINDEX our biggest tables? It has also been noted that indexes can do this too, again a high churn rate is the cause. Off the top of my head I don't remember how to find this out, but it's in the newsgroup archives too. But I think one of the things you can do was: select * from pg_class order by relpages desc; to try to find out where the space is going. Search for something like that. > > 3) Periodicly dump and reload our biggest tables? I hope not! :-) Increase your fsm_* values and see what that does for you, before you take more drastic measures. HTH, Kevin > > I'm really hoping this last one is not the answer, as we'd have to > take the system offline for hours every week to accomplish this.