Re: Manual anti-wraparound vacuums

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Manual anti-wraparound vacuums
Date: 2011-11-11 18:20:17
Message-ID: 8302.1321035617@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> On second thought, if XID wraparound is close enough that the DBA has to
> log in to do manual vacuums to avoid it, relfrozenxid of the
> trouble-making tables are surely older than default
> vacuum_freeze_table_age, so plain VACUUM is enough to scan the whole table.

OK, good. I think we're creating real hazards if anything but the
plainest form of VACUUM is required in this scenario. It seems like
we're safe at the moment, but maybe these considerations should be
documented in the code somewhere, so we don't break the case
accidentally in future.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2011-11-11 19:01:39 Re: Multiple Extensions
Previous Message Tom Lane 2011-11-11 18:17:06 Re: why do we need two snapshots per query?