Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CB12C475C9E for ; Sat, 14 Sep 2002 14:25:32 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 23FAF475B8A for ; Sat, 14 Sep 2002 14:25:32 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g8EIPW5D002040; Sat, 14 Sep 2002 14:25:32 -0400 (EDT) To: Jason Lee Cc: pgsql-admin@postgresql.org Subject: Re: Postgres does not want to start In-reply-to: <3D83770D.2040301@theleehouse.net> References: <3D83770D.2040301@theleehouse.net> Comments: In-reply-to Jason Lee message dated "Sat, 14 Sep 2002 12:51:09 -0500" Date: Sat, 14 Sep 2002 14:25:32 -0400 Message-ID: <2039.1032027932@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/163 X-Sequence-Number: 5702 Jason Lee writes: > When I checked my system this morning, I could not connect to any of my databases. After some digging, I found that it was returning this error: > DEBUG: database system was shut down at 2002-09-14 11:53:40 CDT > DEBUG: ReadRecord: unexpected pageaddr 0/1564000 in log file 0, segment 1, offset 5783552 > DEBUG: invalid primary checkpoint record > DEBUG: ReadRecord: unexpected pageaddr 0/1564000 in log file 0, segment 1, offset 5783552 > DEBUG: invalid secondary checkpoint record > FATAL 2: unable to locate a valid checkpoint record The page address in the xlog page seems to be 20000 hex less than it ought to be. This might be a dropped bit, or something worse. Do you have postmaster log entries from just before this startup failure began happening? Was there a crash, or was it an intended shutdown? It would be useful to run contrib/pg_controldata and see what it says. I think you will need to run pg_resetxlog to get back to a usable state, but it's important first to try to understand what happened, so that you know how much damage is likely to have occurred. regards, tom lane