Re: Figuring out the correct age of datfrozenxid - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: Figuring out the correct age of datfrozenxid
Date
Msg-id 20190726175722.GA7885@alvherre.pgsql
Whole thread Raw
In response to Figuring out the correct age of datfrozenxid  (Yuri Niyazov <yuri@academia.edu>)
List pgsql-admin
On 2019-Jul-25, Yuri Niyazov wrote:

> all the tables have a very reasonable age, but the database itself still
> has an age approaching two billion. So, what do we do now?

I think vacuuming any table will update the database age.  For instance,
try creating an empty table and do "vacuum freeze" on it.

> Were we wrong to truncate and drop this unneeded table without letting
> a vacuum on it finish?

That seems an appropriate measure to have taken  You just need to have
the system figure out that it's gone.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-admin by date:

Previous
From: Yuri Niyazov
Date:
Subject: Figuring out the correct age of datfrozenxid
Next
From: Mariel Cherkassky
Date:
Subject: upgrading cluster with 2 nodes to new major version