From: Alvaro Herrera <alvherre@commandprompt.com>
To: Kevin Kempter <kevin@kevinkempterllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: transaction ID query
Date: Thu, 30 Aug 2007 09:12:48 -0400
Message-ID: <20070830131248.GB5872@alvh.no-ip.org> (raw)
In-Reply-To: <200708300647.36023.kevin@kevinkempterllc.com>
References: <200708300647.36023.kevin@kevinkempterllc.com>
Kevin Kempter wrote:
> Hi List;
>
> can I run queries to see the following for postgres v 8.1.4:
Update to 8.1.9 *soon* unless you want to be victim of a nasty autovac
bug. And in case you already were (which you won't know until your
database starts causing you hard-to-fix headaches), I suggest you
connect to template0 and run VACUUM FREEZE for precaution.
> a) where the db is per used transaction ID's (want to avoid a transaction ID
> wrap-around scenario)
select age(datfrozenxid) from pg_database;
> b) a list of tables in the db and the last time they were vacuumed
Examine the pg_stat views, though I am not sure if the vacuum columns
were already in 8.1. In any case, in 8.1 Xid wraparound is tracked
per-database, so you need database-wide vacuums. In 8.2 it is per table
so it is easier to keep up to date.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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-admin@postgresql.org
Cc: alvherre@commandprompt.com, kevin@kevinkempterllc.com
Subject: Re: transaction ID query
In-Reply-To: <20070830131248.GB5872@alvh.no-ip.org>
References: <200708300647.36023.kevin@kevinkempterllc.com> <20070830131248.GB5872@alvh.no-ip.org>
* 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