Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 237B81337CDF for ; Wed, 22 Dec 2010 17:13:30 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 10844-02-3 for ; Wed, 22 Dec 2010 21:13:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.int.journyx.com (mail.journyx.com [66.219.41.227]) by mail.postgresql.org (Postfix) with ESMTP id 9B0421337BE5 for ; Wed, 22 Dec 2010 17:12:59 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id 9616AC411D; Wed, 22 Dec 2010 15:12:44 -0600 (CST) X-Virus-Scanned: amavisd-new at zimbra.int.journyx.com Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C3CdfYeJWBnJ; Wed, 22 Dec 2010 15:12:39 -0600 (CST) Received: from mail.int.journyx.com (zimbra.int.journyx.com [192.168.100.5]) by mail.int.journyx.com (Postfix) with ESMTP id 3225EC4081; Wed, 22 Dec 2010 15:12:39 -0600 (CST) Date: Wed, 22 Dec 2010 15:12:39 -0600 (CST) From: Scott Whitney Reply-To: Scott Whitney To: Kevin Grittner Cc: Scott Whitney , pgsql-admin@postgresql.org Message-ID: <21700506.3248.1293052359046.JavaMail.root@zimbra.int.journyx.com> In-Reply-To: <3773635.3245.1293052309856.JavaMail.root@zimbra.int.journyx.com> Subject: Re: pg_clog not getting cleared MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3247_1608438.1293052359044" X-Originating-IP: [173.174.48.227] X-Mailer: Zimbra 6.0.6_GA_2331.RHEL4 (ZimbraWebClient - FF3.0 (Win)/6.0.6_GA_2331.RHEL4) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/166 X-Sequence-Number: 36395 ------=_Part_3247_1608438.1293052359044 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit I'm certain it was -f, not -F, since it's still in the script I use, albeit commented out. I understand the purpose of the clogs, but I would think that the transactions would have been frozen on all dbs (I've got about 300 in my cluster) by now. My logs go back to July 13th which, I think, is when the server was last restarted. I'll try the -F on Sat and see if that resolves the issue. I'll also have logs available at that time, assuming all goes well. Thanks for the advice. Scott Whitney wrote: > Each Saturday, I run: vacuumdb -a -v. I have autovac on all the > time. > > However, my pg_clog directory lists clog files going back to > July. > > This is pg 8.4.4 on Linux (CentOS 5.5). > > I know this isn't a whole lot of information at this time. What > more would be useful in finding out what's failing and where? Nothing is failing -- clog is needed to track what has committed until transactions are "frozen". > I seem to recall that doing vacuumdb -f -a -v resolved it Are you sure that wasn't -F rather than -f ? The uppercase switch freezes tuples, which would allow clog to be cleaned up. This shouldn't normally be needed, unless you have some other reason to need aggressive freezing. -Kevin ------=_Part_3247_1608438.1293052359044 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Times New Roman; font-size: 12pt; color: #000000'= >I'm certain it was -f, not -F, since it's still in the script I use, albei= t commented out.

I understand the purpose of the clogs, but I would = think that the transactions would have been frozen on all dbs (I've got abo= ut 300 in my cluster) by now. My logs go back to July 13th which, I think, = is when the server was last restarted.

I'll try the -F on Sat and se= e if that resolves the issue. I'll also have logs available at that time, a= ssuming all goes well.

Thanks for the advice.


Scott Whitney <scott@journyx.com> wrote:
 
&= gt; Each Saturday, I run: vacuumdb -a -v. I have autovac on all the
>= time.
>
> However, my pg_clog directory lists clog files goin= g back to
> July.
>
> This is pg 8.4.4 on Linux (CentOS = 5.5).
>
> I know this isn't a whole lot of information at this= time. What
> more would be useful in finding out what's failing and = where?
 
Nothing is failing -- clog is needed to track what has = committed
until transactions are "frozen".
 
> I seem to r= ecall that doing vacuumdb -f -a -v resolved it
 
Are you sure th= at wasn't -F rather than -f ?  The uppercase switch
freezes tuples,= which would allow clog to be cleaned up.  This
shouldn't normally = be needed, unless you have some other reason to
need aggressive freezing= .
 
-Kevin

------=_Part_3247_1608438.1293052359044--