Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 02203632CB3 for ; Sat, 22 May 2010 14:11:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 48095-04 for ; Sat, 22 May 2010 17:11:40 +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 BC695632BE3 for ; Sat, 22 May 2010 14:11:40 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 6D5E0348035; Sat, 22 May 2010 10:11:39 -0700 (PDT) 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 vz+4KYRSKo6O; Sat, 22 May 2010 10:11:37 -0700 (PDT) Received: from [192.168.1.100] (unknown [75.142.159.62]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 0F87B348002; Sat, 22 May 2010 10:11:37 -0700 (PDT) Subject: Re: How can I tell if I'm autovacuuming? From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: Doug Gorley Cc: pgsql-admin@postgresql.org In-Reply-To: <4BF7E14B.6030800@gorley.ca> References: <4BF7E14B.6030800@gorley.ca> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Sat, 22 May 2010 10:11:23 -0700 Message-ID: <1274548283.8730.99.camel@jd-desktop.unknown.charter.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.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: 201005/216 X-Sequence-Number: 34689 On Sat, 2010-05-22 at 09:51 -0400, Doug Gorley wrote: > From what I see in the docs, these three settings in postgresql.conf > should be enough for PostgreSQL (8.2) to autovacuum with the default > settings: > > autovacuum = on > stats_start_collector = on > stats_row_level = on > > So, two questions: > > (a) Is this correct? Should autovacuum be functional now? If you restarted. > (b) How can I verify that my databases are being vacuumed by autovacuum? pg_stat_user_tables should have a last_autovac column. > > Thanks, > > -- > Doug Gorley | doug@gorley.ca > > -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564 Consulting, Training, Support, Custom Development, Engineering