From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jim Cochrane <jtc@dim.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postrgres data restoration problem
Date: Sun, 07 Dec 2003 22:13:56 -0500
Message-ID: <1377.1070853236@sss.pgh.pa.us> (raw)
In-Reply-To: <200312080117.hB81HZU31509@jupiter.milkyway.org>
References: <200312080117.hB81HZU31509@jupiter.milkyway.org>
Jim Cochrane <jtc@dim.com> writes:
>> How old? We need to know the exact PG version number.
> cat PG_VERSION
> 7.2
That's not exact, it only tells the major release number.
"postmaster --version" was what I was looking for.
> However the server failed to start up, giving the following error messages:
> postmaster successfully started
> DEBUG: database system was shut down at 2003-12-07 14:55:22 MST
> DEBUG: open of /home/pgsql/data/pg_xlog/0000000000000000 (log file 0, segment 0) failed: No such file or directory
> DEBUG: invalid primary checkpoint record
> DEBUG: open of /home/pgsql/data/pg_xlog/0000000000000000 (log file 0, segment 0) failed: No such file or directory
> DEBUG: invalid secondary checkpoint record
> FATAL 2: unable to locate a valid checkpoint record
> DEBUG: startup process (pid 31411) exited with exit code 2
> DEBUG: aborting startup due to startup process failure
This is ungood :-(. Your only hope at this point is to run pg_resetxlog
(which is not a standard part of the 7.2 distribution, but is available
as a contrib utility). If you are lucky, that will let you into the
database, but you should be aware of the possibility that you've lost
parts of the last few transactions and therefore have a
not-completely-consistent database.
regards, tom lane
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, jtc@dim.com
Subject: Re: Postrgres data restoration problem
In-Reply-To: <1377.1070853236@sss.pgh.pa.us>
References: <200312080117.hB81HZU31509@jupiter.milkyway.org> <1377.1070853236@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