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

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Darren Reed <darrenr+postgres(at)fastmail(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Power outage borked things (8.1.10)...
Date: 2008-02-20 16:10:28
Message-ID: 8625.1203523828@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Darren Reed <darrenr+postgres(at)fastmail(dot)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

In response to

Responses

pgsql-admin by date

Next:From: libra dbaDate: 2008-02-20 16:49:18
Subject: Re: Failover of the Primary database and starting the standby database in Postgresql in PITR configuraiton?
Previous:From: Rajiv RajaianDate: 2008-02-20 11:11:20
Subject: Re: How to create a new user with password in commandline with no prompt for password

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