From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Chris Browne <cbbrowne(at)acm(dot)org>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: [DOCS] Autovacuum and XID wraparound |
Date: | 2007-05-16 12:44:20 |
Message-ID: | 20070516124420.GA4582@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:
> > Tom Lane wrote:
> >> 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.
>
> Umm ... you'd have to be a lot more conservative in CLUSTER now that
> it's MVCC-safe. I don't say that CLUSTER can't push up relfrozenxid,
> but there's something wrong if CLUSTER and TRUNCATE are trying to
> push it up the same amount.
No, TRUNCATE will use RecentXmin while the CLUSTER patch I posted uses
OldestXmin, which is what the HeapTupleSatisfiesUpdate test was using.
However, given that Heikki just confirmed that CLUSTER does not freeze
tuples, it's not really possible to do this, so I'll drop the CLUSTER
patch for now.
This means that people using CLUSTER to compact tables won't have the
benefit of advancing relfrozenxid, so they will have to run VACUUM on
those tables at some point anyway, even though there will be no dead
tuples :-(
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2007-05-16 13:59:54 | Re: [DOCS] Autovacuum and XID wraparound |
Previous Message | Heikki Linnakangas | 2007-05-16 08:22:02 | Re: [DOCS] Autovacuum and XID wraparound |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2007-05-16 13:18:56 | Re: updated SORT/LIMIT patch |
Previous Message | Heikki Linnakangas | 2007-05-16 08:22:02 | Re: [DOCS] Autovacuum and XID wraparound |