Re: REINDEX not working for wastedspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx

______________________________________________

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

--
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux