X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 3AA8411F61BB for ; Fri, 31 Mar 2006 14:50:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91395-03 for ; Fri, 31 Mar 2006 14:50:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx2.surnet.cl (mx2.surnet.cl [216.155.73.181]) by postgresql.org (Postfix) with ESMTP id BF1BA11F602E for ; Fri, 31 Mar 2006 14:50:38 -0400 (AST) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx2.surnet.cl with ESMTP; 31 Mar 2006 14:50:38 -0400 X-IronPort-AV: i="4.02,198,1139194800"; d="scan'208"; a="39895817:sNHT18193228" Received: from alvh.no-ip.org (201.220.123.41) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 43A978FD00CDABF6; Fri, 31 Mar 2006 14:50:37 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id B168DC348D0; Fri, 31 Mar 2006 14:50:37 -0400 (CLT) Date: Fri, 31 Mar 2006 14:50:37 -0400 From: Alvaro Herrera To: "Jim C. Nasby" Cc: Gourish Singbal , "pgsql-admin@postgresql.org" Subject: Re: auto vacuuming Message-ID: <20060331185037.GF14204@surnet.cl> Mail-Followup-To: "Jim C. Nasby" , Gourish Singbal , "pgsql-admin@postgresql.org" References: <674d1f8a0603290206u55f114e1y7bfc2f83696fbada@mail.gmail.com> <20060331174802.GS49405@pervasive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060331174802.GS49405@pervasive.com> User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.695 required=5 tests=[AWL=-0.224, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.695 X-Spam-Level: * X-Archive-Number: 200603/405 X-Sequence-Number: 21162 Jim C. Nasby wrote: > On Wed, Mar 29, 2006 at 03:36:36PM +0530, Gourish Singbal wrote: > > we are using postgresql 8.1.3 and wanted to enable autovacuuming for only > > one of the many databases on the same postgresql cluster. > > pg_autovacuum seems to allow to ignore only a particular table and not the > > database since column vacrelid is OID from pg_class table Are there any > > suggestions to accomplish this tasks?. > > Currently there is no way to exclude entire databases from autovacuum. IIRC in one of the original patches I had added a way to do it. It was rejected however; it was argued that there was another mechanism to disable it. I don't remember what it was though. The only possibility that comes to mind is "ALTER DATABASE SET autovacuum TO off" but I don't see why would it work. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support