Re: Bloated Table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bloated Table
Дата
Msg-id 16375.1243455719@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bloated Table  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane wrote:
>> It's an interesting exercise in trying to estimate bloat without
>> groveling through the whole relation, but I seriously doubt you could
>> ever get numbers this way that are trustworthy enough to drive
>> maintenance decisions.

> Well, pg_stattuple is way too expensive to be running every minute ...

Agreed.  I was idly wondering whether it'd be useful to have an option
in pg_stattuple to sample some small fraction of the pages in a
relation, rather than exhaustively examining each one.  It'd be subject
to all the normal ills of sampling, of course, but I'd still trust it
way more than this view.  (Especially noting that the view is already
dependent on sampling anyway, since it's looking at pg_stats...)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Multidimensional array definition in composite type appears parsed as string
Следующее
От: raul.giucich@gmail.com
Дата:
Сообщение: Re: Favorite/Recommended ERD tools