Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 6183A476281 for ; Wed, 8 May 2002 13:42:08 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 161354763C4 for ; Wed, 8 May 2002 12:46:01 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g48Gk0W03236; Wed, 8 May 2002 12:46:00 -0400 (EDT) To: Bojan Belovic Cc: pgsql-admin@postgresql.org Subject: Re: db recovery (FATAL 2) In-reply-to: <20020508140005.13643.qmail@uwdvg023.cms.usa.net> References: <20020508140005.13643.qmail@uwdvg023.cms.usa.net> Comments: In-reply-to Bojan Belovic message dated "Wed, 08 May 2002 10:00:05 -0400" Date: Wed, 08 May 2002 12:46:00 -0400 Message-ID: <3233.1020876360@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200205/68 X-Sequence-Number: 4243 Bojan Belovic writes: > You are correct, it's 7.1.2 . However, the problem is not with disk space > (there's several gigs available), but there could be a problem with a bad > sector on one of the log files. If this is the case, and the log file is > corrupted, is there any way of recovering, even with a certain data loss? Hm. It's complaining about a write, not a read, so there is no lost data (yet), even if your theory is correct. You might first try copying the entire $PGDATA/pg_xlog directory somewhere else. If nothing else avails, see contrib/pg_resetxlog. But that should be your last resort not first. regards, tom lane