bloat indicator using n_dead_tup column

Поиск
Список
Период
Сортировка
От Yambu
Тема bloat indicator using n_dead_tup column
Дата
Msg-id CALhHtcAWd+rfCnXA1-1p9DrqJ0fHpR+P3_GHrhgaVDx5myG5Yg@mail.gmail.com
обсуждение исходный текст
Ответы Re: bloat indicator using n_dead_tup column  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-admin
Hello

I would like to know if the below query can be used as a bloat indicator.

select 
n_dead_tup 
/ (n_live_tup * current_setting('autovacuum_vacuum_scale_factor')::float8 
 + current_setting('autovacuum_vacuum_threshold')::float8) > 1 then true else false end as bloated_indicator
FROM pg_stat_user_tables 


i want to use column n_dead_tup to get an estimate or indicator of impending bloat

regards

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Creating an index on a timestamp with time zone cast to a date-- possible?
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: bloat indicator using n_dead_tup column