Re: XID wraparound in 8.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Anj Adu <fotographs(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>, pgsql-admin(at)postgresql(dot)org
Subject: Re: XID wraparound in 8.4
Date: 2009-10-13 22:01:47
Message-ID: 20403.1255471307@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Anj Adu <fotographs(at)gmail(dot)com> writes:
> Assuming that autovacuum is off in 8,2 and upwards versions, would I
> still have to do a database-wide vacuumdb OR would vacuuming
> individual tables that are permanent be sufficient to take care of XID
> wraparound?

In recent releases it is not possible to turn off autovacuum to the
extent of preventing it from doing anti-wraparound vacuuming, so your
question is a bit mis-posed. But yes, you do need a database-wide
manual vacuum if you are trying to forestall automatic anti-wraparound
vacuuming. Vacuuming individual tables isn't sufficient unless you get
*every single one*, including the system catalogs.

In practice, I think worrying about this is pointless in modern PG.
If you want control over the timing of vacuuming on individual large
tables, do them when you want to. The system will occasionally force
vacuums on small tables to prevent wraparound, but that isn't going
to cause you any performance problems.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Anj Adu 2009-10-13 22:20:17 Re: XID wraparound in 8.4
Previous Message Anj Adu 2009-10-13 21:51:42 Re: XID wraparound in 8.4