Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9E06B64FCF5 for ; Tue, 2 Sep 2008 02:47:28 -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 61482-03 for ; Tue, 2 Sep 2008 02:47:22 -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 D996F650098 for ; Tue, 2 Sep 2008 02:47:22 -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 m825l1pP006129; Tue, 2 Sep 2008 01:47:01 -0400 (EDT) To: Greg Smith cc: Duan Ligong , Alvaro Herrera , pgsql-performance@postgresql.org Subject: Re: too many clog files In-reply-to: References: <20080901191255.E398.DUANLG@nec-as.nec.com.cn> <20080901143359.GC3776@alvh.no-ip.org> <20080902091602.CA09.DUANLG@nec-as.nec.com.cn> Comments: In-reply-to Greg Smith message dated "Tue, 02 Sep 2008 01:32:01 -0400" Date: Tue, 02 Sep 2008 01:47:01 -0400 Message-ID: <6128.1220334421@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: 200809/23 X-Sequence-Number: 31336 Greg Smith writes: > On Tue, 2 Sep 2008, Duan Ligong wrote: >> - Can we controll the maximum number of the clog files? > The reference Alvaro suggested at > http://www.postgresql.org/docs/8.3/interactive/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND > goes over that. If you reduce autovacuum_freeze_max_age, that reduces the > expected maximum size of the clog files. Duan's first post stated that he is running 8.1, which I believe had a quite different rule for truncating pg_clog --- it definitely has not got the parameter autovacuum_freeze_max_age. Too tired to go reread the 8.1 code right now, but don't quote 8.3 docs at him, 'cause they're not too relevant. regards, tom lane