Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 0561F2E0030 for ; Fri, 23 May 2008 14:58:44 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27397-03 for ; Fri, 23 May 2008 14:58:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by developer.postgresql.org (Postfix) with ESMTP id D77582E002E for ; Fri, 23 May 2008 14:58:40 -0300 (ADT) Received: from [192.168.1.5] (or-69-34-217-90.sta.embarqhsd.net [69.34.217.90]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m4NHxnTB019146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 May 2008 10:59:49 -0700 Subject: Re: Continuing issues... Can't vacuum! From: "Joshua D. Drake" To: Carol Walter Cc: pgsql-admin@postgresql.org In-Reply-To: <5897F703-1525-477B-8749-80A0A4E0A656@indiana.edu> References: <5897F703-1525-477B-8749-80A0A4E0A656@indiana.edu> Content-Type: text/plain Organization: Command Prompt, Inc. Date: Fri, 23 May 2008 11:00:22 -0700 Message-Id: <1211565622.17493.24.camel@jd-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 23 May 2008 10:59:50 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/201 X-Sequence-Number: 29285 On Fri, 2008-05-23 at 13:54 -0400, Carol Walter wrote: > Hello, > vacuumdb: vacuuming database "km" > NOTICE: number of page slots needed (2275712) exceeds max_fsm_pages > (200000) > HINT: Consider increasing the configuration parameter > "max_fsm_pages" to a value over 2275712. > > The problem is I've found the max_fsm_pages parameter in the > postgresql.conf file, but changing it doesn't seem to be having any > effect. You have to restart the database. > So I'm going to ask some questions that are probably pretty > silly, but I hope you'll help me. First of all, perhaps the > postgresql.conf file that I am editing may not be the one that is > being read when the database server starts. There are several > postgresql.conf files on this system. How do I tell which one is the > one being read? Woah... :) From psql: show config_file; > The max_fsm_pages parameter says what the minimum setting is in the > file. Is there also a maximum? > It is limited by your shared memory but consider that is not your problem. Your problem is you don't vacuum enough. My suggestion is to do the following: Up the max_fsm_pages a considerable amount Restart Vacuum the entire database backup reinitialize with backup make sure you are vacuuming properly. Sincerely, Joshua D. Drake