Re: TOAST tables keeps growing!

From: "Thomas Madsen" <tm(at)softcom(dot)dk>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: TOAST tables keeps growing!
Date: 2004-08-16 09:27:45
Message-ID: 64F70386AE9AB64D8F36DD6FC355555E570F4A@hal9000.softcom.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> -----Original Message-----
> From: pgsql-admin-owner(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Tom Lane
> Sent: 13. august 2004 21:02
> To: Thomas Madsen
> Cc: pgsql-admin(at)postgresql(dot)org
> Subject: Re: [ADMIN] TOAST tables keeps growing!
>
>
> "Thomas Madsen" <tm(at)softcom(dot)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.

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Madsen 2004-08-16 09:46:29 Re: TOAST tables keeps growing!
Previous Message Martin J. Brown, Jr. 2004-08-16 07:30:59 Re: can't authenticate pg admin