Re: blocking automatic vacuum

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: blocking automatic vacuum
Дата
Msg-id 1494.1277218083@sss.pgh.pa.us
обсуждение исходный текст
Ответ на blocking automatic vacuum  (Uwe Bartels <uwe.bartels@gmail.com>)
Ответы Re: blocking automatic vacuum  (Uwe Bartels <uwe.bartels@gmail.com>)
Re: blocking automatic vacuum  (Uwe Bartels <uwe.bartels@gmail.com>)
Список pgsql-admin
Uwe Bartels <uwe.bartels@gmail.com> writes:
> last ween i've seen a blocking "automatic vacuum".
> as i understood, this is not supposed to happen. in the past i saw vacuum
> processes disappear, in case of the need of a lock.

What that sounds like is it was an anti-wraparound vacuum.  Autovacuum
won't cancel those to avoid delaying other processes.

Now, RowExclusiveLock doesn't conflict with an autovacuum, so there is
more going on here than you've showed us.  The other obvious question is
how did you get to the point where an anti-wraparound vacuum became
necessary.

I speculate that you are doing something that does conflict with vacuum
(ie, SHARE UPDATE EXCLUSIVE lock or higher), and are doing it so often
that regular autovacuum runs on the table never manage to complete.
This is very bad, because you're going to have a serious bloat problem
if autovac keeps getting canceled.  You need to look at what sort of DDL
you are repetitively executing on that table, and find a way to do it a
lot less often.

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: db recovery after raid5 failure
Следующее
От: "Campbell, Lance"
Дата:
Сообщение: on update of table set timestamp