pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Darren Reed <darrenr+postgres@fastmail.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Power outage borked things (8.1.10)...
Date: Wed, 20 Feb 2008 11:10:28 -0500
Message-ID: <8625.1203523828@sss.pgh.pa.us> (raw)
In-Reply-To: <47BBF298.4010108@fastmail.net>
References: <47BBF298.4010108@fastmail.net>

Darren Reed <darrenr+postgres@fastmail.net> writes:
> Starting up postgres, I get the log contents below.
> Is it really as bad as it suggests, namely that I
> need to recover from backup?

Probably :-(

pg_resetxlog would let you into the database, but I do not have high
hopes about the consistency/correctness of what you'll find.  The best
advice would be:

1. pg_resetxlog

2. pg_dumpall

3. initdb, restore from backup

4. compare dump from step 2 to backup dump, apply any changes that seem
sane

And don't forget 

5. Figure out why a simple power failure was able to do this to you,
and fix it.  The most likely bet is that your disk drives are lying
about write completion ... see the PG archives for discussion.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <8625.1203523828@sss.pgh.pa.us>
Permalink:  ../8625.1203523828@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8625.1203523828@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, darrenr+postgres@fastmail.net
  Subject: Re: Power outage borked things (8.1.10)...
  In-Reply-To: <8625.1203523828@sss.pgh.pa.us>

* 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