Re: Possible DB corruption

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Justin M Wozniak <jwozniak(at)cse(dot)nd(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Possible DB corruption
Date: 2007-05-28 22:14:14
Message-ID: 20070528221414.GA65888@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, May 25, 2007 at 04:47:52PM -0400, Justin M Wozniak wrote:
> We noticed that some records were mysteriously disappearing from
> our DB. I went in with psql and found that the \dt command no longer
> works, providing the output below. Is this a sure sign of DB corruption?
> Running psql (PostgreSQL) 7.4.8 on Linux 2.4.27.

You might be suffering from transaction ID wraparound. Are you
vacuuming regularly?

http://www.postgresql.org/docs/7.4/interactive/maintenance.html#VACUUM-FOR-WRAPAROUND

"...every table in the database must be vacuumed at least once every
billion transactions."

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2007-05-28 22:18:09 Re: Possible DB corruption
Previous Message Tom Lane 2007-05-28 22:04:37 Re: Possible DB corruption