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 D09E85E46ED for ; Mon, 16 Aug 2004 06:46:32 -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 09204-01 for ; Mon, 16 Aug 2004 09:46:28 +0000 (GMT) Received: from mail.softcom.dk (unknown [217.157.23.229]) by svr1.postgresql.org (Postfix) with ESMTP id 80C3A5E46D2 for ; Mon, 16 Aug 2004 06:46:26 -0300 (ADT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Subject: Re: TOAST tables keeps growing! Date: Mon, 16 Aug 2004 11:46:29 +0200 Message-ID: <64F70386AE9AB64D8F36DD6FC355555E570F4C@hal9000.softcom.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RE: [ADMIN] TOAST tables keeps growing! Thread-Index: AcSBaUpeDu20EqbmQqykGMPtCrdmVgB9EovAAAYReUA= From: "Thomas Madsen" To: 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: 200408/131 X-Sequence-Number: 14526 > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Stephan Szabo > Sent: 13. august 2004 19:36 > To: Thomas Madsen > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] TOAST tables keeps growing! >=20 >=20 > On Thu, 12 Aug 2004, Thomas Madsen wrote: > > > I'm running a production server with PostgreSQL version 7.2.1, that > > does >=20 > You really should upgrade. If not to 7.4.x, at least to the > last 7.2 release. Yes I know, I'm painfully aware of the need to upgrade :)) > > The problem is that TOAST tables keeps springing forth and consume > > disk space. We do a VACUUM every night, but it does not=20 > reduce or stop > > the TOAST table growth. > > > > I searched the mailing list for answers to this problem, but found > > only other people describing the same problem. Namely, that their=20 > > max_fsm_pages were too low and that postgresql now has lost=20 > track of > > the surplus TOAST data pages. > > > > In our postgresql.conf we ourselves had the default value > of 10000 for > > max_fsm_pages, which I have now raised to around a million. I > > restarted psql and did a vacuum to see if that would reduce=20 > the disk > > usage, but no change was seen. >=20 > Generally, raising fsm and revacuuming (without full) will > mean that more of the space will get re-used so that it=20 > should stop growing from day to day, but it's not really=20 > going to remove space already taken (excepting blank pages at=20 > the end if it can get appropriate locks I think). > > Vacuum Full should remove the blank space at the cost of an > exclusive lock on the table. Thanks, vacuum full on the table itself worked just perfect! ;) Cheers, Thomas.