Search Postgresql Archives

Re: Identifying diskspace leakage

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

 



On Fri, 2004-05-14 at 10:10, Ed L. wrote:
> I am trying to identify tables with significant diskspace "leakage" due to 
> in appropriately low max_fsm_pages settings.  I can see the results of 
> VACUUM ANALYZE VERBOSE output counts of tuples and unused tuples, and 
> understand that (1 - (tuples/unused)) is the amount of diskspace available 
> to be reclaimed with a VACUUM FULL or dump/reload.
> 
> Is there a way to identify the numbers of unused tuples without performing a 
> VACUUM?  Is it stored in a system table anywhere?  Other ideas on how to 
> identify disk bloat short of forcing downtime?

You can calculate the number of bytes per row, multiply by the number of
live tuples (count(1) from table), and subtract that from the actual #
of bytes in the on-disk representation.  The difference is wasted space.

-jwb


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux