Re: Transaction id wraparound and autovacuum

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Casey Duncan <casey(at)pandora(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Transaction id wraparound and autovacuum
Date: 2006-11-21 21:29:22
Message-ID: 17454.1164144562@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Casey Duncan <casey(at)pandora(dot)com> writes:
> - The autovac daemon doesn't initiate a database-wide vacuum until
> 100,000 txns before the txn id warning hits. In my case this gives
> only a few minutes under peak load.

I believe this problem is largely addressed for 8.2; see
http://developer.postgresql.org/pgdocs/postgres/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND
The default autovac interval is a lot more conservative than it was
before (200M transactions), and you can tune things if you need to.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-11-21 21:34:03 Re: list archives
Previous Message Tom Lane 2006-11-21 21:12:01 Re: statement_timeout