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>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: questions about wraparound
Date: Mon, 29 Mar 2021 19:12:15 +0200
Message-ID: <88d01a3bf0443a78c66ff86e41a9dba94eb06cfb.camel@cybertec.at> (raw)
In-Reply-To: <CAKoxK+6oawL4JSCYPYSqa=YTb21qSydKBwjxZZZ3AEHjGeLugw@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>
	<cc34a3095495373f23237c9ab377a9101743bc0f.camel@cybertec.at>
	<CAKoxK+6oawL4JSCYPYSqa=YTb21qSydKBwjxZZZ3AEHjGeLugw@mail.gmail.com>

On Mon, 2021-03-29 at 16:58 +0200, Luca Ferrari wrote:
> > 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".
> 
> Thanks, but this is exactly my point: since inactive databases are
> getting older, why it appears to me that autovacuum is not freezing
> them? I mean, in my experiment age( datfrozenzid) reports the same age
> for every database, even the inactive ones. And since there were
> inactive databases, I was expecting emergency autovacuum to be able to
> run and freeze them. Or am I wrong?

I didn't follow the rest of the thread, but autovacuum should handle
those databases and advance their "datfrozenxid".

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






view thread (14+ messages)  latest in thread

Message-ID: <88d01a3bf0443a78c66ff86e41a9dba94eb06cfb.camel@cybertec.at>
Permalink:  ../88d01a3bf0443a78c66ff86e41a9dba94eb06cfb.camel@cybertec.at/
Also on:    postgresql.org/message-id/88d01a3bf0443a78c66ff86e41a9dba94eb06cfb.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: <88d01a3bf0443a78c66ff86e41a9dba94eb06cfb.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> <CAKoxK+6oawL4JSCYPYSqa=YTb21qSydKBwjxZZZ3AEHjGeLugw@mail.gmail.com> <88d01a3bf0443a78c66ff86e41a9dba94eb06cfb.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