Re: autovacuum doesnt run on the pg_toast_id table

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: autovacuum doesnt run on the pg_toast_id table
Дата
Msg-id 20190117174651.GC18438@telsasoft.com
обсуждение исходный текст
Ответ на autovacuum doesnt run on the pg_toast_id table  (Mariel Cherkassky <mariel.cherkassky@gmail.com>)
Список pgsql-performance
On Thu, Jan 17, 2019 at 07:28:52PM +0200, Mariel Cherkassky wrote:
...
> Now, I realized from the autovacuum
> logging, that when autovacuum runs on the original table (A) it doesn't
> necessary run on the toasted table and this is very weird.
...
> Any idea why the autovacuum doesnt vacuum both tables ?

It *does* vacuum both, just not *necessarily*, as you saw.

The toast is a separate table, so it's tracked separately.

Note that:
|If a table parameter value is set and the
|equivalent <literal>toast.</literal> parameter is not, the TOAST table
|will use the table's parameter value.

You could look in pg_stat_all_tables, to see how frequently the toast is being
autovacuumed relative to its table.

Justin


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

Предыдущее
От: Mariel Cherkassky
Дата:
Сообщение: autovacuum doesnt run on the pg_toast_id table
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: autovacuum doesnt run on the pg_toast_id table