From: Guido Barosio <gbarosio@gmail.com>
To: juliano.gaio@gmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: vacuumdb
Date: Mon, 13 Feb 2006 20:41:03 +0000
Message-ID: <f7f6b4c70602131241y2faf60fer2f3c05ea986a5c83@mail.gmail.com> (raw)
In-Reply-To: <1e9221d50602130842x1a5d817fi@mail.gmail.com>
References: <1e9221d50602130842x1a5d817fi@mail.gmail.com>
Hmmm, AFAIK no, but you can get the age of the databases, and guess if you
need to issue a vacuum or not.
quote from the documentation (www.postgresql.org -> documentation):
SELECT datname, age(datfrozenxid) FROM pg_database;
The age column measures the number of transactions from the cutoff XID to
the current transaction's XID.
With the standard freezing policy, the age column will start at one billion
for a freshly-vacuumed database. When the age approaches two billion, the
database must be vacuumed again to avoid risk of wraparound
failures.Recommended practice is to vacuum
each database at least once every half-a-billion (500 million)
transactions,so as to provide plenty of safety margin. To help meet
this rule, each
database-wide VACUUM automatically delivers a warning if there are any
pg_database entries showing an age of more than 1.5 billion transactions,
for example:
play=# VACUUM;
WARNING: some databases have not been vacuumed in 1613770184 transactions
HINT: Better vacuum them within 533713463 transactions, or you may
have a wraparound failure.
VACUUM
Best regards,
Guido
On 2/13/06, Juliano <juliano.listas@gmail.com> wrote:
>
> Hi all,
>
> There is a way to see vacuumdb last running ?
>
> tks
>
> --
> Juliano
--
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
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: gbarosio@gmail.com, juliano.gaio@gmail.com
Subject: Re: vacuumdb
In-Reply-To: <f7f6b4c70602131241y2faf60fer2f3c05ea986a5c83@mail.gmail.com>
References: <1e9221d50602130842x1a5d817fi@mail.gmail.com> <f7f6b4c70602131241y2faf60fer2f3c05ea986a5c83@mail.gmail.com>
* 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