Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D87F764FCD2 for ; Wed, 10 Sep 2008 14:42:54 -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 34630-10 for ; Wed, 10 Sep 2008 14:42:48 -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 9A93F64FCC4 for ; Wed, 10 Sep 2008 14:42:48 -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 m8AHgem0002258; Wed, 10 Sep 2008 13:42:40 -0400 (EDT) To: "Scott Marlowe" cc: "Kevin Grittner" , alvherre@commandprompt.com, duanlg@nec-as.nec.com.cn, pgsql-performance@postgresql.org, "Matt Smiley" Subject: Re: too many clog files In-reply-to: References: <48C5CC04.D078.0028.0@rentrak.com> <48C6F7A5.D078.0028.0@rentrak.com> <48C79A55.EE98.0025.0@wicourts.gov> Comments: In-reply-to "Scott Marlowe" message dated "Wed, 10 Sep 2008 11:18:02 -0600" Date: Wed, 10 Sep 2008 13:42:40 -0400 Message-ID: <2257.1221068560@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/115 X-Sequence-Number: 31428 "Scott Marlowe" writes: > On Wed, Sep 10, 2008 at 8:58 AM, Kevin Grittner > wrote: >> Some of my high-volume databases don't quite go back to 0000, but this >> does seem to be a problem. I have confirmed that VACUUM FREEZE on all >> but template0 (which doesn't allow connections) does not clean them >> up. No long running transactions are present. > I have a pretty high volume server that's been online for one month > and it had somewhere around 53, going back in order to 0000, and it > was recently vacuumdb -az 'ed. Running another one. No long running > transactions, etc... The expected behavior (in 8.2 and newer) is to maintain about autovacuum_freeze_max_age transactions' worth of clog; which is to say about 50MB at the default settings. If you've got significantly more than that then we should look more closely. I don't remember what the truncation rule was in 8.1, so I can't speak to the OP's complaint. regards, tom lane