Skip site navigation (1) Skip section navigation (2)

Re: Power outage borked things (8.1.10)...

From: Darren Reed <darrenr+postgres(at)fastmail(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Power outage borked things (8.1.10)...
Date: 2008-02-20 20:22:45
Message-ID: 47BC8C15.1060805@fastmail.net (view raw or flat)
Thread:
Lists: pgsql-admin
Tom Lane wrote:
> Darren Reed <darrenr+postgres(at)fastmail(dot)net> writes:
> > # su postgres -c "/usr/pkg/bin/pg_resetxlog -f /data/db"
> > Transaction log reset
>
> > PANIC:  could not access status of transaction 4570963
> > DETAIL:  could not read from file "pg_clog/0004" at offset 90112: 
> > Undefined error: 0
>
> You may need to append a few pages of zeroes to pg_clog/0004 ...
>   

So doing this:
# dd if=/dev/zero bs=8192 count=1 | cat >> 0004

allowed the database to start, but tables are missing.

I'll keep restoring.

Thanks,
Darren


In response to

Responses

pgsql-admin by date

Next:From: Michael MonnerieDate: 2008-02-20 21:05:58
Subject: Re: Power outage borked things (8.1.10)...
Previous:From: Tom LaneDate: 2008-02-20 19:44:49
Subject: Re: Power outage borked things (8.1.10)...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group