Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 306681337BA4 for ; Fri, 12 Nov 2010 16:05:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 90271-10 for ; Fri, 12 Nov 2010 20:05:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id BE5111337BA8 for ; Fri, 12 Nov 2010 16:05:41 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 0A75C348023; Fri, 12 Nov 2010 12:05:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iXdp9QJMoXAt; Fri, 12 Nov 2010 12:05:36 -0800 (PST) Received: from [192.168.1.100] (unknown [71.94.248.62]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 2A0B4348022; Fri, 12 Nov 2010 12:05:36 -0800 (PST) Subject: Re: auto vacuum question From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: dbhandary@iii.com Cc: pgsql-admin@postgresql.org In-Reply-To: <4CDD9907.2080902@iii.com> References: <4CDD9907.2080902@iii.com> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Fri, 12 Nov 2010 12:05:31 -0800 Message-ID: <1289592331.4869.11.camel@jd-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201011/108 X-Sequence-Number: 36074 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