PostgreSQL won't start - Mailing list pgsql-admin

From Laura Horsky
Subject PostgreSQL won't start
Date
Msg-id CAKH15QBN6V3fDq0KkTjbeBG9Xjm84NaBXm9_NutF8tr4jMV0gg@mail.gmail.com
Whole thread Raw
Responses Re: PostgreSQL won't start
List pgsql-admin
I have a PostgreSQL server that was restarted. When it was brought back online, PostgreSQL fails to start with:

....LOG:  database system was interrupted; last known up at ....

....LOG:  unexpected pageaddr 2F/8D000000 in log file 47, segment 159, offset 0

....LOG:  invalid primary checkpoint record

....LOG:  invalid secondary checkpoint record

....PANIC:  could not locate a valid checkpoint record

....LOG:  startup process (PID 20879) was terminated by signal 6: Aborted....LOG:  aborting startup due to startup process failure


I have pg_dumps that were taken prior to failure that I can restore to if I can get PostgreSQL running again.

How can I fix PostgreSQL? I have seen pg_resetxlog but there are so many warnings, I want to make sure that this is the tool to use.

Thanks.
Laura

pgsql-admin by date:

Previous
From: "Armand Pirvu (home)"
Date:
Subject: Re: counting transactions
Next
From: John Scalia
Date:
Subject: Cannot get extensions to load