Re: Where art thou pg_clog?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Casey Duncan <casey(at)pandora(dot)com>, PostgreSQL-general General <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: Where art thou pg_clog?
Date: 2007-02-16 06:54:16
Message-ID: 11687.1171608856@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Casey Duncan wrote:
>> I'm curious how template0 got stomped on.

> Heh :-) Sorry, they are all my bugs. I guess you should be throwing
> stones at me or something.

The pre-8.1 theory was that template0 is (supposed to be) cleanly frozen
and hence never needs vacuumed at all. The post-8.1 theory is that
template0 gets autovacuumed when necessary to prevent wraparound, just
like every other database. 8.1 unfortunately is somewhere in the
middle, because under circumstances-I-don't-remember-at-the-moment,
autovacuum might decide to process template0 and then leave non-frozen
XIDs therein. Which is a problem because the clog-truncation logic
didn't think it needed to consider template0 when deciding if old clog
segments could be thrown away. We live and learn.

The real bottom line here, and one I'll reiterate every chance I get,
is that we don't make updates to back branches because we're too bored
to have anything else to do. If you're on 8.1.5, and the current
release in that branch is 8.1.8, then you're missing some bug fixes
that are probably significant.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-02-16 06:58:28 Re: ROLE INHERIT
Previous Message A. Kretschmer 2007-02-16 06:48:26 Re: Problem writing sql statement....