pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jason Lee <jason@theleehouse.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres does not want to start
Date: Sat, 14 Sep 2002 14:25:32 -0400
Message-ID: <2039.1032027932@sss.pgh.pa.us> (raw)
In-Reply-To: <3D83770D.2040301@theleehouse.net>
References: <3D83770D.2040301@theleehouse.net>

Jason Lee <jason@theleehouse.net> 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



view thread (2+ messages)

Message-ID: <2039.1032027932@sss.pgh.pa.us>
Permalink:  ../2039.1032027932@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2039.1032027932@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jason@theleehouse.net
  Subject: Re: Postgres does not want to start
  In-Reply-To: <2039.1032027932@sss.pgh.pa.us>
  References: <3D83770D.2040301@theleehouse.net> <2039.1032027932@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