X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 617D6D1B471 for ; Mon, 8 Dec 2003 03:14:24 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 34553-07 for ; Sun, 7 Dec 2003 23:13:57 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 5E6EAD1BB6C for ; Sun, 7 Dec 2003 23:13:53 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hB83Du19001378; Sun, 7 Dec 2003 22:13:56 -0500 (EST) To: Jim Cochrane Cc: pgsql-admin@postgresql.org Subject: Re: Postrgres data restoration problem In-reply-to: <200312080117.hB81HZU31509@jupiter.milkyway.org> References: <200312080117.hB81HZU31509@jupiter.milkyway.org> Comments: In-reply-to Jim Cochrane message dated "Sun, 07 Dec 2003 18:17:35 -0700" Date: Sun, 07 Dec 2003 22:13:56 -0500 Message-ID: <1377.1070853236@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/79 X-Sequence-Number: 11587 Jim Cochrane 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