Re: transaction wrap around

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: transaction wrap around
Дата
Msg-id 24701.1512440707@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: transaction wrap around  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
John R Pierce <pierce@hogranch.com> writes:
> On 12/4/2017 2:21 PM, chris kim wrote:
>> How would I investigate if my database is nearing a transaction wrap 
>> around.

> it would be screaming bloody murder in the log, for one.

I think the simplest thing is to keep an eye on

    select max(age(datfrozenxid)) from pg_database;

If that starts to approach two billion, or gets a lot larger than
autovacuum_freeze_max_age, you've got a problem.

            regards, tom lane


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: WAL reducing size
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: transaction wrap around