From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Chris Browne <cbbrowne(at)acm(dot)org> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: [DOCS] Autovacuum and XID wraparound |
Date: | 2007-05-14 22:16:19 |
Message-ID: | 20070514221619.GC8916@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-patches |
Chris Browne wrote:
> Would the following 'maintenance' regimen be truly safe against XID
> wraparound:
>
> - Most tables are being vacuumed regularly, so that
> pg_class.relfrozenxid is kept "safe."
>
> - There are some tables that periodically get TRUNCATEd so that, in
> principle, they never need to be vacuumed.
>
> Is it actually true that we'd never need to vacuum those tables
> (assuming 8.2+)? I suppose it would be rather cheap to VACUUM
> immediately after the TRUNCATE...
You'd need to vacuum after the truncate. It would be pretty cheap, the
tables being empty.
I suppose it would be pretty trivial to set the relfrozenxid to
RecentXmin or something during TRUNCATE.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-05-14 23:10:22 | Re: [DOCS] Autovacuum and XID wraparound |
Previous Message | Chris Browne | 2007-05-14 20:25:08 | Re: [DOCS] Autovacuum and XID wraparound |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-05-14 23:10:22 | Re: [DOCS] Autovacuum and XID wraparound |
Previous Message | Chris Browne | 2007-05-14 20:25:08 | Re: [DOCS] Autovacuum and XID wraparound |