Re: REINDEX not working for wastedspace - Mailing list pgsql-performance

From Shaun Thomas
Subject Re: REINDEX not working for wastedspace
Date
Msg-id 4E79E702.4090405@peak6.com
Whole thread Raw
In response to REINDEX not working for wastedspace  (AI Rumman <rummandba@gmail.com>)
Responses Re: REINDEX not working for wastedspace  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: REINDEX not working for wastedspace  (Andy Lester <andy@petdance.com>)
List 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@peak6.com

______________________________________________

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

pgsql-performance by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: : Performance Improvement Strategy
Next
From: Hellmuth Vargas
Date:
Subject: parámetros de postgres y linux en maquinas virtuales