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 963375E3F15 for ; Mon, 16 Aug 2004 06:27:49 -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 03530-01 for ; Mon, 16 Aug 2004 09:27:44 +0000 (GMT) Received: from mail.softcom.dk (unknown [217.157.23.229]) by svr1.postgresql.org (Postfix) with ESMTP id C3E755E3639 for ; Mon, 16 Aug 2004 06:27:42 -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:27:45 +0200 Message-ID: <64F70386AE9AB64D8F36DD6FC355555E570F4A@hal9000.softcom.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] TOAST tables keeps growing! Thread-Index: AcSBfUlSV4B9mR/8RoWr25WMwNaK3AB86HCg 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/130 X-Sequence-Number: 14525 > -----Original Message----- > From: pgsql-admin-owner@postgresql.org=20 > [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Tom Lane > Sent: 13. august 2004 21:02 > To: Thomas Madsen > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] TOAST tables keeps growing!=20 >=20 >=20 > "Thomas Madsen" writes: > > What can I do to reclaim the wasted TOAST diskspace? >=20 > vacuum full might help. Yes, vacuum full did the trick! =20 > > Can I find and eliminate the lost TOAST tuples somehow? >=20 > Well, one thing to ask is whether it's the toast *table*=20 > that's bloating, or the *index* on the toast table. (VACUUM=20 > VERBOSE would help you find out.) > > If it's the table, then more frequent plain vacuums and/or=20 > increasing FSM should fix it. If the index is growing while=20 > the table stays about the same, you could try periodic=20 > REINDEXes, but the only real solution is to move up to PG 7.4. The bloating was primarily caused by the TOAST tables (several gigs surplus), but the TOAST indexes are also slowly bloating as we have indexes on a UNIX timestamp column. I will have to choose between reindexing and upgrading... For now I will keep an eye on the TOAST tables to see if the new FSM value (1,000,000) keeps the TOAST tables at a reasonable size. Thank you for the input! Cheers, Thomas.