Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D3E7E632CF3 for ; Wed, 4 Feb 2009 15:29:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 86318-01-3 for ; Wed, 4 Feb 2009 15:29:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id CE7E4632D15 for ; Wed, 4 Feb 2009 15:29:16 -0400 (AST) Received: from alvh.no-ip.org ([200.27.242.245]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id n14JYibF016020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Feb 2009 11:34:59 -0800 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 9F8B35980FD; Wed, 4 Feb 2009 13:59:36 -0300 (CLST) Date: Wed, 4 Feb 2009 13:59:35 -0300 From: Alvaro Herrera To: Marc Mamin Cc: pgsql-admin@postgresql.org Subject: Re: autovacuum question Message-ID: <20090204165933.GB32680@alvh.no-ip.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Wed, 04 Feb 2009 11:34:59 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/37 X-Sequence-Number: 31258 Marc Mamin wrote: > There are 2 features that would be helpfull in my case: > > - define vacuum properties on table groups rather than on given tables: > > For example, I don't want to vacuum daily tables which can be > identified with a regexp: > tablename ~ '\.*d_[0-9]{8}' Hmm. I'm not really sure how could we handle this kind of situation. Something that strikes me as useful is the ability to say "please don't autovacuum any tables except those that I mark it so". Right now you can only disable autovac for particular tables, not enable them. > - automatically remove the pg_autovacuum entry when a table is dropped > (well it's not such complicated...) Yep. > And 2 questions: > > Can I disable track_counts when I'm not using autovacuum, or is it used > for other purposes ? Other than the various pg_stat views, they are not used anywhere else. > Free Space Map: is it affected by dropped tables ? Or more generally, > must I care with it in a special way in my situation ? No, don't worry about it. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.