From: Darren Reed <darrenr+postgres@fastmail.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Power outage borked things (8.1.10)...
Date: Wed, 20 Feb 2008 12:22:45 -0800
Message-ID: <47BC8C15.1060805@fastmail.net> (raw)
In-Reply-To: <15060.1203536689@sss.pgh.pa.us>
References: <47BBF298.4010108@fastmail.net>
<8625.1203523828@sss.pgh.pa.us>
<47BC7C24.9040606@fastmail.net>
<15060.1203536689@sss.pgh.pa.us>
Tom Lane wrote:
> Darren Reed <darrenr+postgres@fastmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: darrenr+postgres@fastmail.net, tgl@sss.pgh.pa.us
Subject: Re: Power outage borked things (8.1.10)...
In-Reply-To: <47BC8C15.1060805@fastmail.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox