Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 75F3C1337F49 for ; Fri, 17 Sep 2010 21:47:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 71715-09 for ; Sat, 18 Sep 2010 00:47:01 +0000 (UTC) X-Greylist: delayed 00:14:27.006493 by SQLgrey-1.7.6 Received: from mailgate.iii.com (mailgate.iii.com [205.227.88.3]) by mail.postgresql.org (Postfix) with ESMTP id 4CAA11337F48 for ; Fri, 17 Sep 2010 21:47:01 -0300 (ADT) Received: from mailhub.iii.com (mailhub [10.1.2.3]) by mailgate.iii.com (8.13.6/8.13.6) with ESMTP id o8I0PX4M018256 for ; Fri, 17 Sep 2010 17:25:33 -0700 (PDT) Received: from iii.com (molly [10.1.2.249]) by mailhub.iii.com (8.13.6/8.13.6) with ESMTP id o8I0ZIO5016036 for ; Fri, 17 Sep 2010 17:35:18 -0700 (PDT) Received: from [10.1.7.210] ([10.1.7.210]) by iii.com (8.9.3/8.9.1) with ESMTP id RAA27921 for ; Fri, 17 Sep 2010 17:39:10 -0700 (PDT) Message-ID: <4C940889.3000505@iii.com> Date: Fri, 17 Sep 2010 17:32:09 -0700 From: Dinesh Bhandary Reply-To: dbhandary@iii.com Organization: Innovative Interfaces User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: files under pg_clog directories are missing Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/110 X-Sequence-Number: 35654 Hello Everybody - Due to hardware crash we ran into issues where some blocks were corrupted and some files were missing. I was able to get over the corrupted blocks ( errmsg - "invalid page header in block 12345 of realtion x") by setting zero_damaged_pages=0 and running vacuum afterwards. Now I am running into situations where pg_clog files are missing (errmsg - "could not open pg_clog/0D0D). I have a backup which is quite old ( considering this as a last resort). Is there any other way to fix this problem? I also created empty blocks to fool postgres, but there are so many of these file missing I was wondering if there a better/faster way to fix this problem. Thanks. Dinesh