Re: Database recovery after fs crash

From: J(dot)Henning(at)t-online(dot)de
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Database recovery after fs crash
Date: 2003-08-28 14:26:05
Message-ID: 1925.213.252.135.82.1062080765.squirrel@vds.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>> How do I do that? I don't know the format of the clog files. The only
>> information I found was in clog.h and xlog.h.
>
> xlog is fairly easy, I think resetxlog or something can work there. For
> clog I just noted from the logs which clog files it was missing and
> created them filled with either 0x00 or 0x55 (I forget if it make a
> difference) and kept going until done.

Thanks a lot for your help. Whatever table I was able to identify I was
able to recover. I just filled every clog file missing with 0x00 and used
pg_resetxlog for the xlog files, just like you suggested. It worked :)
Now, I have at least part of my data back.

Christian

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robby Russell 2003-08-28 14:40:08 Re: Books for PostgreSQL?
Previous Message Marc G. Fournier 2003-08-28 14:21:21 Re: The ..... worm