Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 51EF49FA17A for ; Thu, 30 Nov 2006 20:26:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 48656-03 for ; Thu, 30 Nov 2006 20:26:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9B4819FA100 for ; Thu, 30 Nov 2006 20:26:38 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kB10QbnK008313; Thu, 30 Nov 2006 19:26:37 -0500 (EST) To: Paul Lathrop cc: pgsql-performance@postgresql.org Subject: Re: Defining performance. In-reply-to: <456F624F.2090906@squaretrade.com> References: <456F624F.2090906@squaretrade.com> Comments: In-reply-to Paul Lathrop message dated "Thu, 30 Nov 2006 14:59:27 -0800" Date: Thu, 30 Nov 2006 19:26:36 -0500 Message-ID: <8312.1164932796@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/276 X-Sequence-Number: 22046 Paul Lathrop writes: > ... When I joined the company last year, the databases were > deployed on 12-disk RAID5 arrays on dual-proc AMD machines with 4Gb of > RAM, running Debian Woody and Postgres 7.2. These systems seemed to > suffer a gradually decreasing performance accompanied by a gradually > growing disk space usage. The DBA had come to the conclusion that the > VACUUM command did/does not work on these systems, because even after a > VACUUM FULL, the size of the database was continually increasing. The very first thing you need to do is get off 7.2. After that, I'd recommend looking at *not* using VACUUM FULL. FULL is actually counterproductive in a lot of scenarios, because it shrinks the tables at the price of bloating the indexes. And 7.2's poor ability to reuse index space turns that into a double whammy. Have you checked into the relative sizes of tables and indexes and tracked the trend over time? regards, tom lane