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 2AA675294D for ; Thu, 30 Jun 2005 10:31:21 -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 29809-05 for ; Thu, 30 Jun 2005 13:31:11 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0A77B528CB for ; Thu, 30 Jun 2005 10:31:09 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j5UDV21J018108; Thu, 30 Jun 2005 09:31:02 -0400 (EDT) To: Martin Lesser Cc: pgsql-performance@postgresql.org Subject: Re: Vacuum becomes slow In-reply-to: <877jgci9yh.fsf@nb-acer.bettercom.de> References: <877jgci9yh.fsf@nb-acer.bettercom.de> Comments: In-reply-to Martin Lesser message dated "Thu, 30 Jun 2005 09:24:06 +0200" Date: Thu, 30 Jun 2005 09:31:01 -0400 Message-ID: <18107.1120138261@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/593 X-Sequence-Number: 13230 Martin Lesser writes: > the time needed for a daily VACUUM on a table with about 28 mio records > increases from day to day. My guess is that the original timings were artificially low because the indexes were in nearly perfect physical order, and as that condition degrades over time, it takes longer for VACUUM to scan them. If that's the right theory, the runtime should level off soon, and maybe you don't need to do anything. You could REINDEX periodically but I think the time taken to do that would probably be more than you want to spend (especially since REINDEX locks out writes where VACUUM does not). You should check that your FSM settings are large enough, but given that the table itself doesn't seem to be bloating, that's probably not the issue. regards, tom lane