From: Alvaro Herrera <alvherre@commandprompt.com>
To: Aldor <aldnin@yahoo.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: autovacuum running even when not set in config?
Date: Mon, 17 Dec 2007 11:55:27 -0300
Message-ID: <20071217145527.GI5637@alvh.no-ip.org> (raw)
In-Reply-To: <fk40j1$1vs5$1@news.hub.org>
References: <20071210183551.GA11514@nemesis.aod.cx>
<20071210184845.GC27126@alvh.no-ip.org>
<fk40j1$1vs5$1@news.hub.org>
Aldor wrote:
> Well, the database is also showing a hint when less then 9 million
> transactions are available - and this hint is telling us to vacuum
> the whole database.
>
> If, vacuum the whole database, would take days (quite unsure how
> many days sometimes) is it possible to find out manually which
> tables originally need a vacuum or is the xid wraparound problem
> database wide so we MUST vacuum the whole database?
On 8.2 this is per table. You can check which tables need vacuum with
select age(relfreezexid) from pg_class
(I'm not sure if the column is relfreezexid or relfrozenxid).
> The automatic startup of autovacuum in this cases is really good,
> but we would like to manage vacuum by ourself, especially WHEN it is
> running, because we have different load times on different database
> servers depending on time zones and the users using it.
Yeah, this is something we are planning for 8.4.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alvherre@commandprompt.com, aldnin@yahoo.de
Subject: Re: autovacuum running even when not set in config?
In-Reply-To: <20071217145527.GI5637@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