X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F328A9FA5BA for ; Thu, 15 Jun 2006 08:49:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 86052-07 for ; Thu, 15 Jun 2006 08:49:45 -0300 (ADT) X-Greylist: delayed 00:29:22.518708 by SQLgrey- Received: from ranger.systems.pipex.net (ranger.systems.pipex.net [62.241.162.32]) by postgresql.org (Postfix) with ESMTP id 2410F9F9CAA for ; Thu, 15 Jun 2006 08:49:46 -0300 (ADT) Received: from flange.edesix.com (81-86-64-114.dsl.pipex.com [81.86.64.114]) by ranger.systems.pipex.net (Postfix) with ESMTP id 50DA4E0000BE for ; Thu, 15 Jun 2006 12:20:20 +0100 (BST) Received: from 81-86-137-48.dsl.pipex.com ([81.86.137.48] helo=[192.168.2.2]) by flange.edesix.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1Fqptc-0000TP-9u for pgsql-admin@postgresql.org; Thu, 15 Jun 2006 12:20:20 +0100 Message-ID: <44914273.9030308@edesix.com> Date: Thu, 15 Jun 2006 12:20:19 +0100 From: Robin Iddon User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: autovacuum References: <6992E470F12A444BB787B5C937B9D4DF04C4C928@ca-mail1.cis.local> In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF04C4C928@ca-mail1.cis.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/126 X-Sequence-Number: 22088 > How do I know if autovacuum is reclaiming space or is my max_fsm setting > plain wrong. (I understand that autovacuum marks tuples for reuse, but > shouldn't pg_total_relation_size take that into account) > You can find out if your FSM settings are big enough by running vacuumdb -av (and yes, it needs to be -a) - obviously you might choose not to run this when the database is busy doing something else. Capture the output - at the very end it will tell you whether or not your FSM settings are adequate to map the reusable space in the database. You might also want to read the documentation on autovacuum's logging output options - this may tell you what you want to know - prior to 8.1 autovacuum was documented in (on my system) /usr/doc/postgres-x.x.x/contrib/README.pg_autovacuum - post 8.1 it's part of the main distribution and should be documented in the main PG docs. Hope this helps, Robin