Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D34FE9FA252 for ; Tue, 28 Nov 2006 07:08:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 57739-09 for ; Tue, 28 Nov 2006 07:08:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 8BFF79FA231 for ; Tue, 28 Nov 2006 07:08:20 -0400 (AST) thread-index: AccS3YRfPKg45pnVQ8WY2LAlJCbp+Q== Received: from [192.168.0.22] ([62.232.55.118]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Tue, 28 Nov 2006 06:08:21 -0500 Message-ID: <456C189F.7080103@enterprisedb.com> Date: Tue, 28 Nov 2006 11:08:15 +0000 Content-Class: urn:content-classes:message From: "Heikki Linnakangas" Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 User-Agent: Thunderbird 1.5.0.7 (X11/20060927) MIME-Version: 1.0 To: "Michael Simms" Cc: Subject: Re: BUG #2784: Performance serious degrades over a period of a month References: <200611261635.kAQGZqKE025405@wwwmaster.postgresql.org> In-Reply-To: <200611261635.kAQGZqKE025405@wwwmaster.postgresql.org> Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Nov 2006 11:08:22.0062 (UTC) FILETIME=[84558CE0:01C712DD] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/224 X-Sequence-Number: 16359 Michael Simms wrote: > The following bug has been logged online: > > Bug reference: 2784 > Logged by: Michael Simms > Email address: michael@tuxgames.com > PostgreSQL version: 8.1.4 > Operating system: Linux kernel 2.6.12 > Description: Performance serious degrades over a period of a month > Details: > > OK, we have a database that runs perfectly well after a dump and restore, > but over a period of a month or two, it just degrades to the point of > uselessness. > vacuumdb -a is run every 24 hours. We have also run for months at a time > using -a -z but the effect doesnt change. You might have a hung transaction that never finishes open, which prevents vacuum from removing old tuple versions. Or you might have too low FSM settings as others suggested. I'd try running VACUUM VERBOSE by hand, and taking a good look at the output. If there's nothing obviously wrong with it, please send the output back to the list (or pgsql-performance, as Tom suggested), and maybe we can help. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com