X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A4AF0D1D452 for ; Tue, 2 Dec 2003 15:26:41 +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 32101-09 for ; Tue, 2 Dec 2003 11:26:14 -0400 (AST) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by svr1.postgresql.org (Postfix) with SMTP id BB769D1D23B for ; Tue, 2 Dec 2003 11:25:57 -0400 (AST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Tue Dec 02 16:25:52 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id QAA16236; Tue, 2 Dec 2003 16:25:52 +0100 (MET) From: Christoph Haller Message-Id: <200312021525.QAA18638@rodos> Subject: Re: Ooops ! :( Recovery techniques To: richard@ibisaustralia.com (Richard Sydney-Smith) Date: Tue, 02 Dec 2003 16:25:51 MET Cc: pgsql-sql@postgresql.org In-Reply-To: <017b01c3b7c5$7328cd40$61c58690@athlon2000>; from "Richard Sydney-Smith" at Dec 1, 103 5:47 am X-Mailer: Elm [revision: 212.4] X-Virus-Scanned: by amavisd-new at postgresql.org X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char 9C hex) in message header 'Received' Received: \234by rodos.fzk.de... ^ X-Archive-Number: 200312/20 X-Sequence-Number: 16186 > > My machine just crashed in the middle of an update. > > When I restart the postgresql server the database engine appears ok and the= > n tells me that a file /data/pg_clog/0697 is not there.=20 > > I presume that these are the transaction log files.=20 > I would like to truncate the old logfiles, re-index and keep going. > I that possible with postgres of do I have to do a full rebuild? > > thanks verymuch > > Richard Sydney-Smith > > Sorry, your presumption is wrong. In contrary to what the name might suggest this file is not a log file at all. Your dbase is probably seriously damaged. If you haven't made a dbase dump using "pg_dump" before, you'd better do that full rebuild you mentioned. Regards, Christoph PS I recommend to read the chapter 'Backup and Restore' of the fine manual to be prepared when your machine crashes again.