Re: Problems with autovacuum and vacuum

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Problems with autovacuum and vacuum
Дата
Msg-id AANLkTinT1+vReXvSQCqqnzbE-ZOkwXT7YJnPvwZf3E+A@mail.gmail.com
обсуждение исходный текст
Ответ на Problems with autovacuum and vacuum  (JotaComm <jota.comm@gmail.com>)
Список pgsql-hackers
On Thu, Dec 30, 2010 at 12:56 PM, JotaComm <jota.comm@gmail.com> wrote:
> Last week I had a serious problem with my PostgreSQL database. My autovacuum
> is OFF, but in September it started to prevent the transaction wraparoud;
> however last week the following message appeared continuously in my log:
>
> WARNING: database "production" must be vacuumed within 4827083 transactions
> HINT: To avoid a database shutdown, execute a full-database VACUUM in
> "production".
>
> This message appeared for five to six hours; after that, the message
> disappeared from log. Any idea about what could have happened?

I'm thinking that autovacuum kicked into gear to prevent transaction
wraparound.  Once it did enough work to stave off disaster, the
warning messages stopped appearing in the log.

> Every day the vacuum is executed on some tables; and on Sundays it's
> executed on all tables. But as the autovacuum is running since September,
> and it runs for a long time, the vacuum was blocked because autovacuum had
> been running on the same table. How should I procede in this case?

I guess the obvious thing to do would be to turn on autovacuum and
forget about manual vacuums.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: and it's not a bunny rabbit, either
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Avoiding rewrite in ALTER TABLE ALTER TYPE