Re: postgres 8.2.9 transaction id wraparound failure

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: "Maria L(dot) Wilson" <Maria(dot)L(dot)Wilson-1(at)nasa(dot)gov>
Cc: "Wilson, Maria Louise (LARC-E301)[SCIENCE SYSTEMS APPLICATIONS]" <m(dot)l(dot)wilson(at)nasa(dot)gov>, "jd(at)commandprompt(dot)com" <jd(at)commandprompt(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: postgres 8.2.9 transaction id wraparound failure
Date: 2009-04-20 18:38:52
Message-ID: 20090420183852.GF10358@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Maria L. Wilson wrote:
> I tried just vacuuming the "postgres" database first. No luck. Was
> still unable to startup the server normally.

Did the vacuum actually work? Note that you need to open the database
you're going to vacuum, on the --single command line.

> Here's is a snipped from the query you suggested.... All the databases
> on this machine look similar.....

So you'll need to vacuum them all ...

> backend> SELECT datname, age(datfrozenxid) FROM pg_database ORDER BY
> age(datfrozenxid) DESC
> 2009-04-20 14:27:52.250 EDT [10097] [] WARNING: database "postgres"
> must be vacuumed within 981218 transactions
> 2009-04-20 14:27:52.250 EDT [10097] [] HINT: To avoid a database
> shutdown, execute a full-database VACUUM in "postgres".
> 1: datname (typeid = 19, len = 64, typmod = -1, byval = f)
> 2: age (typeid = 23, len = 4, typmod = -1, byval = t)
> ----
> 1: datname = "postgres" (typeid = 19, len = 64, typmod = -1,
> byval = f)
> 2: age = "2146502429" (typeid = 23, len = 4, typmod = -1, byval = t)
> ----
> 1: datname = "ange" (typeid = 19, len = 64, typmod = -1, byval = f)
> 2: age = "2146502429" (typeid = 23, len = 4, typmod = -1, byval = t)
> ----

My guess is that autovacuum is failing to vacuum anything for some
reason. Maybe it's dying due to an error, which you'd find in the
server log file.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Maria L. Wilson 2009-04-20 18:43:23 Re: postgres 8.2.9 transaction id wraparound failure
Previous Message Maria L. Wilson 2009-04-20 18:30:07 Re: postgres 8.2.9 transaction id wraparound failure