Re: [HACKERS] vacuum slowness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] vacuum slowness
Дата
Msg-id 19558.921721956@sss.pgh.pa.us
обсуждение исходный текст
Ответ на vacuum slowness  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
> I just deleted all 50,000 rows from a table that has one int4 and one text
> field.

> Why does vacuum take so long?  If all the rows are superceeded, so no
> rows actually have to be moved, should it take so long for vacuum to
> run?

Do you have any indexes on the table?  I've noticed (and complained in
the past ;-)) that vacuuming a table takes unreasonably long if there
are a lot of dead index entries to be cleaned.  It seems faster to drop
and recreate the index in a case like that.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Sequences....
Следующее
От: Vadim Mikheev
Дата:
Сообщение: Re: vacuum slowness