X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 389A052846 for ; Mon, 20 Jun 2005 11:59:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64140-02 for ; Mon, 20 Jun 2005 14:59:44 +0000 (GMT) Received: from mars.interactivemediafactory.net (mars.imfeurope.net [194.2.222.161]) by svr1.postgresql.org (Postfix) with ESMTP id CA3675282E for ; Mon, 20 Jun 2005 11:59:39 -0300 (ADT) Received: from JC-8600.directinfos.com (localhost [127.0.0.1]) by mars.interactivemediafactory.net (8.12.11/8.12.11) with ESMTP id j5KExZF8094277; Mon, 20 Jun 2005 16:59:36 +0200 (CEST) (envelope-from jc@directinfos.com) Message-Id: <6.2.0.14.0.20050620165134.03b61140@pop.interactivemediafactory.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.0.14 Date: Mon, 20 Jun 2005 16:59:29 +0200 To: Alex Stapleton From: Jacques Caron Subject: Re: autovacuum suggestions for 500,000,000+ row Cc: pgsql-performance@postgresql.org In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/366 X-Sequence-Number: 13003 Hi, At 16:44 20/06/2005, Alex Stapleton wrote: >We never delete >anything (well not often, and not much) from the tables, so I am not >so worried about the VACUUM status DELETEs are not the only reason you might need to VACUUM. UPDATEs are important as well, if not more. Tables that are constantly updated (statistics, session data, queues...) really need to be VACUUMed a lot. >but I am wary of XID wraparound >nuking us at some point if we don't sort vacuuming out so we VACUUM >at least once every year ;) That would give you a maximum average of 31 transactions/sec... Don't know if that's high or low for you. > However not running ANALYZE for such huge >periods of time is probably impacting the statistics accuracy >somewhat, and I have seen some unusually slow queries at times. >Anyway, does anyone think we might benefit from a more aggressive >autovacuum configuration? ANALYZE is not a very expensive operation, however VACUUM can definitely be a big strain and take a looooong time on big tables, depending on your setup. I've found that partitioning tables (at the application level) can be quite helpful if you manage to keep each partition to a reasonable size (under or close to available memory), especially if the partitioning scheme is somehow time-related. YMMV. Jacques.