Re: Problem with VACUUM after very large delete?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with VACUUM after very large delete?
Дата
Msg-id 17547.1040167956@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with VACUUM after very large delete?  (Doug Fields <dfields-pg-general@pexicom.com>)
Список pgsql-general
Doug Fields <dfields-pg-general@pexicom.com> writes:
> Earlier today I deleted about 31 million records from one of our tables
> with a very complex query which required a full table scan. This query took
> quite a few hours to run (in fact, overnight).

> Why? The VACUUM doesn't seem to be vacuuming the two indexes on the table.

Have you got any open transactions hanging about?  VACUUM probably
thinks it can't remove the tuples yet because they're still potentially
visible to somebody under MVCC rules.

            regards, tom lane

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

Предыдущее
От: Doug Fields
Дата:
Сообщение: Re: Problem with VACUUM after very large delete?
Следующее
От: Luke Van
Дата:
Сообщение: test--please disregard