Re: pg_clog / pg_xlog corruption?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Adam Haberlach <adam(at)newsnipple(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_clog / pg_xlog corruption?
Date: 2003-10-22 02:17:35
Message-ID: 20031022021735.GA23593@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You can create the missing clog file as a file 256K big full of zeros. Then
dump, initdb and restore.

And upgrade the db to the latest minor version.

On Tue, Oct 21, 2003 at 04:49:26PM -0700, Adam Haberlach wrote:
> We had one of our databases suddenly try to reference a pg_clog
> file that didn't exist whenever we attempted to select from a certain
> table. Anyone know of a way to recover from this? Is there a way to
> reset the transaction logs and just use whatever data is actually
> stored in the system?
>
> --
> Adam Haberlach | "We spent the 90's all trying to figure out
> adam(at)mediariffic(dot)com | how to get email and the 00's trying to
> http://mediariffic.com | figure out how to not get email."
> | -- Joe Gross
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> "All that is needed for the forces of evil to triumph is for enough good
> men to do nothing." - Edmond Burke
> "The penalty good people pay for not being interested in politics is to be
> governed by people worse than themselves." - Plato

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-10-22 04:01:14 Re: pg_clog / pg_xlog corruption?
Previous Message Adam Haberlach 2003-10-21 23:49:26 pg_clog / pg_xlog corruption?