Re: REINDEX not working for wastedspace

From: Shaun Thomas <sthomas(at)peak6(dot)com>
To: AI Rumman <rummandba(at)gmail(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: REINDEX not working for wastedspace
Date: 2011-09-21 13:30:42
Message-ID: 4E79E702.4090405@peak6.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 09/21/2011 02:01 AM, AI Rumman wrote:

> Using the query http://wiki.postgresql.org/wiki/Show_database_bloat,
> I got the following result for a table:

God. I wish they would erase that Wiki page, or at least add a
disclaimer. That query is no better than a loose estimate. Never, ever,
ever depend on it for critical information about your tables. Ever.

Ever.

With that said, there are a lot of ways which can get the information
you want. One is the pgstattuple contrib, the other is the
pg_freespacemap contrib (though that didn't get really useful until 8.4
and above).

Check out those documentation pages for usage info. More importantly,
ignore the results of that query. It's wrong. If you've just reindexed,
those indexes are about as small as they're ever going to be.

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604
312-676-8870
sthomas(at)peak6(dot)com

______________________________________________

See http://www.peak6.com/email-disclaimer/ for terms and conditions related to this email

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Hellmuth Vargas 2011-09-21 13:32:34 parĂ¡metros de postgres y linux en maquinas virtuales
Previous Message Shaun Thomas 2011-09-21 13:03:13 Re: : Performance Improvement Strategy