From: Joshua D. Drake <jd@commandprompt.com>
To: dbhandary@iii.com
Cc: pgsql-admin@postgresql.org
Subject: Re: auto vacuum question
Date: Fri, 12 Nov 2010 12:05:31 -0800
Message-ID: <1289592331.4869.11.camel@jd-desktop> (raw)
In-Reply-To: <4CDD9907.2080902@iii.com>
References: <4CDD9907.2080902@iii.com>
On Fri, 2010-11-12 at 11:44 -0800, Dinesh Bhandary wrote:
> Hi All -
>
> I am working to tune the auto vacuum in 8.4 and 8.2. I am finding that
> some of the tables are not getting vacuumed even though they exceed
> analyze/vacuum threshold. Do you know where auto vacuum process looks to
> get the number of rows deleted/updated/inserted?
In 8.2 your problem is likely that autovacuum is single worker (or that
you have the idle-in-transaction problem).
In 8.4 you should not have this problem, if you do increase your
autovacuum_max_workers (and make sure you don't have an
idle-in-transaction problem).
> pg_stat_user_tables have only the cumulative stats. I am interested in
> finding the most current ( incremental stats).
Pg doesn't provide this by default, you would have to install mrtg etc..
Joshua D. Drake
>
> Thanks a lot.
>
> Dinesh
>
--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering
http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt
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: jd@commandprompt.com, dbhandary@iii.com
Subject: Re: auto vacuum question
In-Reply-To: <1289592331.4869.11.camel@jd-desktop>
* 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