Re: TOAST tables keeps growing!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Thomas Madsen" <tm(at)softcom(dot)dk>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: TOAST tables keeps growing!
Date: 2004-08-13 19:02:19
Message-ID: 25925.1092423739@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Thomas Madsen" <tm(at)softcom(dot)dk> writes:
> What can I do to reclaim the wasted TOAST diskspace?

vacuum full might help.

> 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.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-08-13 19:05:18 Re: dynamic DB descriptions
Previous Message Tom Lane 2004-08-13 18:58:36 Re: PG 7.2 varchar change