Re: questions about wraparound - Mailing list pgsql-general

From Laurenz Albe
Subject Re: questions about wraparound
Date
Msg-id cc34a3095495373f23237c9ab377a9101743bc0f.camel@cybertec.at
Whole thread Raw
In response to Re: questions about wraparound  (Luca Ferrari <fluca1978@gmail.com>)
Responses Re: questions about wraparound  (Luca Ferrari <fluca1978@gmail.com>)
List pgsql-general
On Mon, 2021-03-29 at 10:33 +0200, Luca Ferrari wrote:
> Another thing that comes into my mind as a doubt is: why are all
> databases becoming old? I mean, I'm provoking activity _only_ on
> testdb, therefore other database such as template1 are not doing
> anything.

That one I can answer.

If there is no activity on a database, its "datfrozenxid" stays
the same.  So, as transaction IDs are consumed, it is getting older
automatically.  That means that even inactive databases will receive
an anti-wraparound vacuum occasionally.  But that should not have
to do anything except advance "datfrozenxid".

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: Luca Ferrari
Date:
Subject: Re: questions about wraparound
Next
From: Luca Ferrari
Date:
Subject: Re: questions about wraparound