Re: [DOCS] Autovacuum and XID wraparound

From: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Chris Browne <cbbrowne(at)acm(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [DOCS] Autovacuum and XID wraparound
Date: 2007-05-16 00:25:00
Message-ID: 20070516002500.GG20707@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-patches

On Tue, May 15, 2007 at 06:13:47PM -0400, Alvaro Herrera wrote:
> Tom Lane wrote:
> > Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > > I suppose it would be pretty trivial to set the relfrozenxid to
> > > RecentXmin or something during TRUNCATE.
> >
> > I had the idea we were doing that already --- at least I'm pretty sure I
> > remember it being discussed. But I see it's not being done in HEAD.
>
> Patch to do it attached. I am thinking we can do something similar in
> CLUSTER as well.

Actually, it already happens for CLUSTER because cluster calls
heap_create_with_catalog, which calls AddNewRelationTuple. See
backend/catalog/heap.c line 716.
--
Jim Nasby decibel(at)decibel(dot)org
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Jim C. Nasby 2007-05-16 00:29:36 Re: [PATCHES] OS/X startup scripts
Previous Message Alvaro Herrera 2007-05-15 22:13:47 Re: [DOCS] Autovacuum and XID wraparound

Browse pgsql-patches by date

  From Date Subject
Next Message Jim C. Nasby 2007-05-16 00:29:36 Re: [PATCHES] OS/X startup scripts
Previous Message Jim C. Nasby 2007-05-16 00:08:07 Re: Automatic adjustment of bgwriter_lru_maxpages