Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 844156501D9 for ; Fri, 17 Oct 2008 14:35:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 31409-06 for ; Fri, 17 Oct 2008 14:35:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by postgresql.org (Postfix) with ESMTP id 7FEF16501E5 for ; Fri, 17 Oct 2008 14:35:50 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Fri, 17 Oct 2008 12:35:49 -0500 Message-Id: <48F88694.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Date: Fri, 17 Oct 2008 12:35:32 -0500 From: "Kevin Grittner" To: "Tory M Blue" Cc: Subject: Re: Index bloat, reindex weekly, suggestions etc? References: <8a547c840810170905m7323dbd8x90de7dd004abc7d4@mail.gmail.com> <48F8773F.EE98.0025.0@wicourts.gov> <8a547c840810170947p52075b0cmadc8c2060b38cfa4@mail.gmail.com> In-Reply-To: <8a547c840810170947p52075b0cmadc8c2060b38cfa4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200810/95 X-Sequence-Number: 31676 >>> "Tory M Blue" wrote: > DETAIL: A total of 501440 page slots are in use (including overhead). > 501440 page slots are required to track all free space. > Current limits are: 1087500 page slots, 430 relations, using 6401 kB. As already pointed out, that's a lot of free space. You don't use VACUUM FULL on this database, do you? That would keep the data relatively tight but seriously bloat indexes, which is consistent with your symptoms. VACUUM FULL should not be used routinely, it is basically for recovery from serious heap bloat when you don't have space for another copy of the data, and it should usually be followed by a REINDEX to clean up the index bloat it causes. > And effective_cache, ya I didn't change that as I wanted to see how > the results were with just adding memory and in all honesty it was > night and day without changing that param, what will modifying that > param accomplish? It may allow PostgreSQL to pick more efficient plans for some of your queries. Be honest with it about the available resources and give it the chance. In particular, you may see fewer queries resorting to sequential scans of entire tables. -Kevin