pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Luca Ferrari <fluca1978@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: questions about wraparound
Date: Mon, 29 Mar 2021 11:14:21 +0200
Message-ID: <cc34a3095495373f23237c9ab377a9101743bc0f.camel@cybertec.at> (raw)
In-Reply-To: <CAKoxK+4YJm4cF6ZRCe6D36GiwqQP8B-WtOL_+tjU3RfNgBrLEA@mail.gmail.com>
References: <CAKoxK+5yPtx3-VOea_GJPp5fNHXc+EnGPUkBSh3ccx3B+0Sd=w@mail.gmail.com>
	<CAKoxK+4KSZU7zHK3572nmVzT3nUvFN4ZjCff65oPGDqy05XPRw@mail.gmail.com>
	<CAKoxK+5U+CuHjC=xsPKrG4CrEdXYK=HdhxmO-d5KeT5cmdtF9A@mail.gmail.com>
	<CAKoxK+5tybjan_fdDifEFEpHuwvjZdk7r3rH2AgmFim45DYohQ@mail.gmail.com>
	<CAKoxK+4YJm4cF6ZRCe6D36GiwqQP8B-WtOL_+tjU3RfNgBrLEA@mail.gmail.com>

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






view thread (14+ messages)  latest in thread

Message-ID: <cc34a3095495373f23237c9ab377a9101743bc0f.camel@cybertec.at>
Permalink:  ../cc34a3095495373f23237c9ab377a9101743bc0f.camel@cybertec.at/
Also on:    postgresql.org/message-id/cc34a3095495373f23237c9ab377a9101743bc0f.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, fluca1978@gmail.com
  Subject: Re: questions about wraparound
  In-Reply-To: <cc34a3095495373f23237c9ab377a9101743bc0f.camel@cybertec.at>
  References: <CAKoxK+5yPtx3-VOea_GJPp5fNHXc+EnGPUkBSh3ccx3B+0Sd=w@mail.gmail.com> <CAKoxK+4KSZU7zHK3572nmVzT3nUvFN4ZjCff65oPGDqy05XPRw@mail.gmail.com> <CAKoxK+5U+CuHjC=xsPKrG4CrEdXYK=HdhxmO-d5KeT5cmdtF9A@mail.gmail.com> <CAKoxK+5tybjan_fdDifEFEpHuwvjZdk7r3rH2AgmFim45DYohQ@mail.gmail.com> <CAKoxK+4YJm4cF6ZRCe6D36GiwqQP8B-WtOL_+tjU3RfNgBrLEA@mail.gmail.com> <cc34a3095495373f23237c9ab377a9101743bc0f.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox