Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7CB60650224 for ; Tue, 26 Aug 2008 20:49:09 -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 91415-01 for ; Tue, 26 Aug 2008 20:49:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 279846501D5 for ; Tue, 26 Aug 2008 20:49:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m7QNmu17011313; Tue, 26 Aug 2008 19:48:56 -0400 (EDT) To: Jeff Frost cc: Carol Walter , pgsql-admin@postgresql.org Subject: Re: vacuum verbose relations reporting In-reply-to: References: Comments: In-reply-to Jeff Frost message dated "Tue, 26 Aug 2008 12:32:39 -0700" Date: Tue, 26 Aug 2008 19:48:55 -0400 Message-ID: <11312.1219794535@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/183 X-Sequence-Number: 30028 Jeff Frost writes: > No I actually mean that this part: > Current limits are: 600000 page slots, 10000 relations, using 4587 kB. > NOTICE: max_fsm_relations(10000) equals the number of relations checked > HINT: You have at least 10000 relations. Consider increasing the > Just tells me that I'm equal or greater than max_fsm_relations. Yeah, because that's all that can be told from the contents of the shared free space map: it's full, but we have no idea how many other tables might have been competing for space in it. > But vacuum verbose does tell me how many page_slots are in use even > when it's greater than max_fsm_pages, so you know what value to use in > postgresql.conf for the fsm settings. Well, no :-(. What that number is is the number of page slots that the relations that are in the FSM would have liked to have --- we have the "request" size as well as the "allocated" size for each such relation. We have no idea how many slots the relations that aren't in FSM might have liked to have. This whole design is pretty awful, of course (I can say that because it was my design :-(). There is work in progress to make the fixed-size FSM go away entirely in 8.4, which will certainly be a boon to DBAs. regards, tom lane