X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0FB47D1B897 for ; Fri, 31 Oct 2003 00:39:30 +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 71251-04 for ; Thu, 30 Oct 2003 20:39:01 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id D5A2BD1B52F for ; Thu, 30 Oct 2003 20:38:57 -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 h9V0cvit004666; Thu, 30 Oct 2003 19:38:57 -0500 (EST) To: cjwhite@cisco.com Cc: pgsql-admin@postgresql.org Subject: Re: Another database recovery problem In-reply-to: <002501c39f41$e3d87410$0400a8c0@amer.cisco.com> References: <002501c39f41$e3d87410$0400a8c0@amer.cisco.com> Comments: In-reply-to "Chris White (cjwhite)" message dated "Thu, 30 Oct 2003 15:59:43 -0800" Date: Thu, 30 Oct 2003 19:38:57 -0500 Message-ID: <4665.1067560737@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/381 X-Sequence-Number: 10942 "Chris White (cjwhite)" writes: > My 7.2.1 database was in the middle of inserting a large object when the > power went down. You really, really, really should be on 7.2.4 (if not 7.3.*). We don't make dot-releases for amusement's sake --- there are some critical bug fixes between 7.2.1 and 7.2.4, including some possibly relevant to your problem. > postgres: voicemail aesop 127.0.0.1 VACUUM: CRASH sql sql sql FATAL2: > open of /data/sql/pg_clog/09C6 failed: No such file or directory This looks like a corrupted page in (probably) pg_largeobject --- do you get the same if you try, say, "select count(*) from pg_largeobject"? > and from then on any time we try to connect we get a message saying > database is in recovery mode and it never comes out. How can I recover > this database or do I have to restore a prior backup? I can't think of any reasonable fix in 7.2.* other than truncating pg_largeobject, after which you'd need to reload the large objects somehow. If you are lucky, the corruption doesn't affect any of the valid data --- have you tried pg_dumping the database? A dump and reload of the particular database would be the most reliable solution. regards, tom lane