From: Thomas Madsen <tm@softcom.dk>
To: pgsql-admin@postgresql.org
Subject: Re: TOAST tables keeps growing!
Date: Mon, 16 Aug 2004 11:27:45 +0200
Message-ID: <64F70386AE9AB64D8F36DD6FC355555E570F4A@hal9000.softcom.local> (raw)
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [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!
>
>
> "Thomas Madsen" <tm@softcom.dk> writes:
> > What can I do to reclaim the wasted TOAST diskspace?
>
> vacuum full might help.
Yes, vacuum full did the trick!
> > Can I find and eliminate the lost TOAST tuples somehow?
>
> Well, one thing to ask is whether it's the toast *table*
> that's bloating, or the *index* on the toast table. (VACUUM
> VERBOSE would help you find out.)
>
> If it's the table, then more frequent plain vacuums and/or
> increasing FSM should fix it. If the index is growing while
> the table stays about the same, you could try periodic
> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tm@softcom.dk
Subject: Re: TOAST tables keeps growing!
In-Reply-To: <64F70386AE9AB64D8F36DD6FC355555E570F4A@hal9000.softcom.local>
References: <64F70386AE9AB64D8F36DD6FC355555E570F4A@hal9000.softcom.local>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox