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 29BFE32A18E for ; Thu, 30 Sep 2004 02:14:08 +0100 (BST) 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 68927-04 for ; Thu, 30 Sep 2004 01:13:53 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id EF73F32A214 for ; Thu, 30 Sep 2004 02:13:52 +0100 (BST) 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 i8U1Dp1x008083; Wed, 29 Sep 2004 21:13:51 -0400 (EDT) To: Mike Darretta Cc: pgsql-admin@postgresql.org Subject: Re: Data Partition is Growing In-reply-to: <415B49DA.4000503@metnet.navy.mil> References: <415B49DA.4000503@metnet.navy.mil> Comments: In-reply-to Mike Darretta message dated "Wed, 29 Sep 2004 16:48:42 -0700" Date: Wed, 29 Sep 2004 21:13:51 -0400 Message-ID: <8082.1096506831@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/282 X-Sequence-Number: 14985 Mike Darretta writes: > I'm an application developer trying to understand a pg data partition > issue. We are storing large objects (gifs) at a rate of about 1GIG /day. > After about a week, most of the objects are recycled -- that is, an > insert triggers a delete of a similar object. The postgres data > partition, though, continues to grow, even though the objects are > successfully deleted from the application *and* largeobject tables. You need to check your free-space-map settings --- it sounds like the FSM is not large enough to keep track of all the free space in pg_largeobject. If you do a "vacuum verbose" across the whole database, the tail end of the (voluminous) printout will tell you something about where you need to set the FSM parameters. regards, tom lane