Re: unreasonable run time for vacuum analyze?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: unreasonable run time for vacuum analyze?
Дата
Msg-id 29056.1181697251@sss.pgh.pa.us
обсуждение исходный текст
Ответ на unreasonable run time for vacuum analyze?  ("David Monarchi" <david.e.monarchi@gmail.com>)
Список pgsql-novice
"David Monarchi" <david.e.monarchi@gmail.com> writes:
> One table in the database contains 22.6M rows of 71 fields with an average
> length of about 500 bytes.  The table is in BCNF.  The table is queried in a
> wide variety of ways.  There are 37 btree and Gin indexes defined on the
> table.  The GIN indexes are on array fields.  The rest are btree.

37 indexes?  Yoi.  You should think harder about whether every one of
them really pulls its weight, because VACUUM is when they cost you.

> I started running vacuum analyze on this table over 44 hours ago, and it is
> still running.  The load on the machine has been modest.  There have been no
> times when all eight processors were being used.

I/O bound no doubt; have you been watching I/O status?  Or, if you have
vacuum_cost_delay enabled, maybe it's set too high.

> 3) are there parameters that I can set to improve the performance of the
> vacuum analyze process?

What is maintenance_work_mem set to?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Joins within a table
Следующее
От: Steve Lefevre
Дата:
Сообщение: inputs for pg_get_id() function?