Re: autovacuum running even when not set in config?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Aldor <aldnin(at)yahoo(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: autovacuum running even when not set in config?
Date: 2007-12-17 14:55:27
Message-ID: 20071217145527.GI5637@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sören Kress 2007-12-17 15:12:16 PITR and modification of the backup database
Previous Message Pino Martínez Herbut 2007-12-17 14:53:03 Ayuda Postgre