Re: Bloated Table - Mailing list pgsql-general

From Greg Smith
Subject Re: Bloated Table
Date
Msg-id alpine.GSO.2.01.0905271815120.2734@westnet.com
Whole thread Raw
In response to Re: Bloated Table  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Bloated Table  (Christophe <xof@thebuild.com>)
List pgsql-general
On Wed, 27 May 2009, Tom Lane wrote:

> It's an interesting exercise in trying to estimate bloat without
> groveling through the whole relation

Interesting and an extremely common request.  I just added an item to the
Vacuum section of the TODO list while you were listing issues and
potential solutions here:  "Provide more information in order to improve
user-side estimates of dead space bloat in relations" links to this
thread.

As pointed out upthread, there's a fair number of people who have picked
up on this particular query for bloat estimation.  It seemed accurate
enough for gross maintenance use when I did a quick check of its results
before, but those were tables without variable widths, TOAST, etc.  This
is one of those boring tasks that DBAs really want more
monitoring-friendly visibility into.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

pgsql-general by date:

Previous
From: Vick Khera
Date:
Subject: Re: Table inheritance and partitioning
Next
From: Jeff Davis
Date:
Subject: Re: Table inheritance and partitioning