Re: Identifying diskspace leakage

Поиск
Список
Период
Сортировка
От Jeffrey W. Baker
Тема Re: Identifying diskspace leakage
Дата
Msg-id 1084556840.24051.7.camel@heat
обсуждение исходный текст
Ответ на Identifying diskspace leakage  ("Ed L." <pgsql@bluepolka.net>)
Ответы Re: Identifying diskspace leakage  ("Ed L." <pgsql@bluepolka.net>)
Список pgsql-general
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


В списке pgsql-general по дате отправления:

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: new version of tsearch2 introduction is available
Следующее
От: "Gregory S. Williamson"
Дата:
Сообщение: Re: dbmirror