Re: More harrowing tales of TOAST growth

From: grant <grant(at)amadensor(dot)com>
To: Jeffrey Baker <jwbaker(at)acm(dot)org>
Cc: Sean Chittenden <chitt(at)acm(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: More harrowing tales of TOAST growth
Date: 2002-05-06 17:50:55
Message-ID: Pine.LNX.4.33.0205061050140.9318-100000@dbms.amadensor.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

It seems that your problem with toast tables indexes growing due to the
tree not collapsing when the growth is all on one side, and Scott
Marlowe's problem of booleans not collapsing because too many values are
the same are closely related, and very connected. Has anyone with these
problems tried dropping and re-creating the index? This would have some
impact, but no worse than the vacuum, and it would not require downtime,
just may cause poor performance for any hits during the re-build.

Questions for a guru (probably Tom Lane)
1) Are statistics generated at index creation time, or just vacuum
analyze?
2) Does vacuum analyze cause less locking than vacuum full?
3) Can index creation and dropping be isolated in a transaction?
4) Putting those considerations together, what is the best order of doing
things to recover the space (or at least make it reuseable to stop growth)
with the least impact for the users?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Reyes 2002-05-06 18:07:59 Relation on longer exists error
Previous Message Nigel J. Andrews 2002-05-06 17:50:35 Re: pgaccess