Re: DB fails to start: "Could not read from file "pg_clog/0003" at offset 212992: No error.

From: Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
To: raghu ram <raghuchennuru(at)gmail(dot)com>
Cc: Olga Vingurt <olgavi(at)checkpoint(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, Ofer Israeli <oferi(at)checkpoint(dot)com>
Subject: Re: DB fails to start: "Could not read from file "pg_clog/0003" at offset 212992: No error.
Date: 2012-07-16 14:04:18
Message-ID: CA+h6Ahg8P6T1cXeRzEfJ41pibR0QjK7uZHwdm9-fQm=X7oK7fA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I think you need to download windows version DD and use it.
http://www.chrysocome.net/dd

---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/

On Mon, Jul 16, 2012 at 7:25 PM, raghu ram <raghuchennuru(at)gmail(dot)com> wrote:

>
>
> On Mon, Jul 16, 2012 at 5:44 PM, Olga Vingurt <olgavi(at)checkpoint(dot)com>wrote:
>
>> Hi,****
>>
>> ** **
>>
>> We are using PostgreSQL 8.3 on Windows Server. ****
>>
>> The db crashed and now it fails to start up.****
>>
>> ** **
>>
>> The error is:****
>>
>> FATAL: could not access status of transaction 4020264****
>>
>> DETAIL: Could not read from file "pg_clog/0003" at offset 212992: No
>> error.****
>>
>> ** **
>>
>> Additional log from event viewer:****
>>
>> LOG: database system was interrupted; last known up at 2012-07-12
>> 11:35:00 CEST****
>>
>> ** **
>>
>> ** **
>>
>> How can we recover from the current state? ****
>>
>> ** **
>>
>>
>>
> Please perform below steps:
>
> 1. Backup the current pg_clog/0003 file in different directory
>
> 2. Create a file by assumption of make the uncommitted record as they
> haven't been committed. command as follows:
>
> *dd if=/dev/zero of=<data directory location>/pg_clog/0003 bs=256K
> count=1*
>
> 3. Start the Cluster
>
>
> --
>
> Thanks & Regards,
>
> Raghu Ram
>
> EnterpriseDB Corporation
>
> Blog:http://raghurc.blogspot.in/
>
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2012-07-16 14:56:16 Re: Can't figure out how to use now() in default for tsrange column (PG 9.2)
Previous Message postgresuser 2012-07-16 14:04:17 Create stored procedure from C#.net