Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2625947630B for ; Fri, 3 Jan 2003 10:05:00 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id DC69F4764A3 for ; Fri, 3 Jan 2003 10:02:48 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h03FIX6P019346; Fri, 3 Jan 2003 10:18:33 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h03F2fj30338; Fri, 3 Jan 2003 10:02:41 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XX5JZ387; Fri, 3 Jan 2003 10:02:41 -0500 Subject: Re: max_fsm_pages Sanity Check From: Robert Treat To: Robert Treat Cc: HT Levine , pgsql-admin@postgresql.org In-Reply-To: <1041605057.1983.32.camel@camel> References: <1041547656.32015.38.camel@camel> <1041605057.1983.32.camel@camel> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 03 Jan 2003 10:02:41 -0500 Message-Id: <1041606161.1983.59.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/19 X-Sequence-Number: 6861 On Fri, 2003-01-03 at 09:44, Robert Treat wrote: > relations determines > the total number of "objects" the database is willing to pay attention > to. The default is set to 100, which means if you have more than 100 > tables/indicies in your database, vacuum might ignore some tables that > are being updated. Theres no rule on how it picks which tables it pays > attention to (my guess is that its a first come first served thing, but > thats just a guess) but given that there are around 90 system "objects" > it's not hard to imagine that some things get left behind. You probably > need this set to at least 610, though fwiw the default on this was > recently bumped up to 1000 for future versions. > Just to correct myself, the entries used in max_fsm_relations are tables and toast (not indexes) , of which there are 37 system tables taking up FSM entries. You can get a more accurate count of your need by doing select count(*) from pg_class where relkind in ('r','t'); in each database in your cluster. Robert Treat