Re: [DOCS] Autovacuum and XID wraparound

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Chris Browne <cbbrowne(at)acm(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [DOCS] Autovacuum and XID wraparound
Date: 2007-05-17 15:53:19
Message-ID: 20070517155319.GF28701@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-patches

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > Here is my proposed patch.
>
> Actually, the original patch in this series was fairly horrid, and
> things haven't been made better by the subsequent changes. It lacked
> any comment explaining what it was doing; failed to comment on the way
> it was abusing heap_freeze_tuple (the latter thinks it's getting a tuple
> that's in a disk buffer); and IMHO puts the heap_freeze_tuple call in
> the wrong place anyway. raw_heap_insert has no business editorializing
> on the tuple it's given. It'd be better to have the call in
> rewrite_heap_tuple, which is already busy messing with the tuple's
> visibility info. Perhaps like this, in addition to your changes:

Applied, thanks. Let me know if there is still something you don't like
about the current state of cluster or truncate.

The part about actually advancing relfrozenxid is still not done though ...

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2007-05-17 16:02:48 Re: [DOCS] Autovacuum and XID wraparound
Previous Message Tom Lane 2007-05-17 00:00:41 Re: [DOCS] Autovacuum and XID wraparound

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-05-17 16:02:48 Re: [DOCS] Autovacuum and XID wraparound
Previous Message Bruce Momjian 2007-05-17 15:27:49 Re: Patch for seq scan & scan resistant bufmgr