Re: XID wraparound in 8.4

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: XID wraparound in 8.4
Дата
Msg-id 20090813011312.GQ5721@alvh.no-ip.org
обсуждение исходный текст
Ответ на XID wraparound in 8.4  (Anj Adu <fotographs@gmail.com>)
Список pgsql-admin
Rob Newton escribió:
> Alvaro Herrera wrote:
> >Devrim GÜNDÜZ escribió:
> >
> >>FWIW, PostgreSQL 8.3+ will start autovacuum (even if it is turned off)
> >>if a database is approaching XID wraparound, and get rid of the
> >>problem-- so you don't actually need to check it.
> >
> >8.1 does it too.  The main difference is that 8.1 will run a
> >database-wide vacuum, whereas in 8.2 and up it only vacuum tables that
> >have not been vacuumed recently.
>
> Alvaro, we had an 8.1 server that did not start autovacuum when XID
> wraparound was approaching.  Rather, it just stopped performing
> transactions, and returned the usual XID wraparound warning.

My guess is that it did start but it failed to do useful work because of
some bug that caused it to die prematurely.  There were bugs in early
8.1 that precluded autovacuum from working, so this is not an idle
hypothesis.  (The worst part of this story is that the bug would be fire
at some point but the effect could go unseen for months, even after you
installed the patched version.)

If those autovacuum failures go ignored long enough, you get into the
I-don't-want-to-do-anything-until-you-caress-me mode.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: "Too many open files in system" error
Следующее
От: Rob Newton
Дата:
Сообщение: Re: XID wraparound in 8.4