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 CDB6911F65E8 for ; Thu, 13 Apr 2006 05:07:52 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 required=5 tests=[none] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id Csu7+1iqWlD5 for ; Thu, 13 Apr 2006 05:07:45 -0300 (ADT) X-Greylist: delayed 00:30:56.542142 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id C4DA211F6617 for ; Thu, 13 Apr 2006 05:07:44 -0300 (ADT) Received: from ranger.systems.pipex.net (ranger.systems.pipex.net [62.241.162.32]) by svr4.postgresql.org (Postfix) with ESMTP id 9B0EA5AF853 for ; Thu, 13 Apr 2006 07:36:48 +0000 (GMT) Received: from flange.edesix.com (81-86-64-236.dsl.pipex.com [81.86.64.236]) by ranger.systems.pipex.net (Postfix) with ESMTP id 4F46EE00012A for ; Thu, 13 Apr 2006 08:36:44 +0100 (BST) Received: from host86-131-245-51.range86-131.btcentralplus.com ([86.131.245.51] helo=[192.168.101.208]) by flange.edesix.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.50) id 1FTwNf-0001Ry-LD for pgsql-admin@postgresql.org; Thu, 13 Apr 2006 08:36:43 +0100 Message-ID: <443DFF8B.1010103@edesix.com> Date: Thu, 13 Apr 2006 08:36:43 +0100 From: Robin Iddon User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: Re: Autovacuum ideas References: <1d219a6f0604111602m62445e60h425c5dd59219606e@mail.gmail.com> <443C39ED.6050706@aurema.com> <1d219a6f0604120753h1cabb4c2n60f53403225dcf81@mail.gmail.com> <20060412151553.GD23855@surnet.cl> <1d219a6f0604121353t1e997628i6e10d00bed4b2354@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200604/119 X-Sequence-Number: 21288 Brendan Duddridge wrote: > What I'd like to see is a table exclusion list. I have a few very > large history tables that are never updated or deleted, only inserts > and selects. Such a table will never trigger the vacuum rules as I understand them (vacuum only happens on table that have obsolete tuples, which means update or delete). It will correctly trigger the analyze rules now and then, but analyze is cheap compared to vacuum and is desirable because it will help the planner do it's job (assuming that querying the table is important to you). Remember analyze only requires a read-lock on the table so it can run in parallel with other queries quite happily. If you really need to disable autovac on a table you can disable pg_autovacuum from running on a specific table by creating a row for your table in pg_autovacuum table and setting the pg_autovacuum.enabled to false. Robin