Re: pg_clog not getting cleared

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Scott Whitney" <swhitney(at)journyx(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_clog not getting cleared
Date: 2010-12-21 21:21:54
Message-ID: 4D10C61202000025000388ED@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Scott Whitney <scott(at)journyx(dot)com> 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Adib 2010-12-22 06:39:32 Problems Upgrading from 8.2 to 9.0
Previous Message Scott Whitney 2010-12-21 20:24:53 pg_clog not getting cleared