Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum
Дата
Msg-id 20070601155405.GG4503@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum  (Csaba Nagy <nagy@ecircle-ag.com>)
Ответы Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum  (Csaba Nagy <nagy@ecircle-ag.com>)
Список pgsql-general
Csaba Nagy wrote:
> On Fri, 2007-06-01 at 17:40, Alvaro Herrera wrote:
> > Huh, why do you say that it doesn't need any vacuuming?
>
> This table is only inserted and rarely deleted, so other than the XID
> wraparound vacuuming it is not critical. Of course it will need vacuum
> finally, but it can survive months without it - or till the XID
> wraparound occurs, which I can't estimate yet if in danger or not... how
> could I check that ? (I can probably find the answer if looking harder
> though).

select age(datfrozenxid) from pg_database where datname = 'your database'

2 billions and you are screwed.  Autovacuum starts panicking way before
that, to have enough slack.

--
Alvaro Herrera                  http://www.amazon.com/gp/registry/5ZYLFMCVHXC
"Un poeta es un mundo encerrado en un hombre" (Victor Hugo)

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

Предыдущее
От: Csaba Nagy
Дата:
Сообщение: Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum
Следующее
От: Robert Fitzpatrick
Дата:
Сообщение: Restoring 8.2 to 8.0