Re: Continual increase of age(datfrozenxid) for template0

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Continual increase of age(datfrozenxid) for template0
Дата
Msg-id 27557.1234313206@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Continual increase of age(datfrozenxid) for template0  (Justin Pasher <justinp@newmediagateway.com>)
Список pgsql-general
Justin Pasher <justinp@newmediagateway.com> writes:
> As you can see, it is starting to approach the 2 billion mark. If I
> change the datallowconn setting to TRUE, connect to template0, then
> perform a VACUUM FREEZE, the age(datfrozenxid) goes way down (probably
> around the 3 million mark). However, over time (typically less than two
> weeks), the number slowly creeps higher and higher, until our custom
> monitoring software starts spitting out a warning/error that the
> database should be vacuumed soon.

Recommendation: fix that monitoring software to ignore databases with
datallowconn = false.  They're not supposed to need vacuuming.
(autovacuum will process them anyway for safety's sake, but they're
not supposed to need it.)

            regards, tom lane

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

Предыдущее
От: Lee Hughes
Дата:
Сообщение: Re: Referencing Cursor/Row/Record Fields in PL/PgSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: encoding of PostgreSQL messages