Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id BBDE213380BD for ; Sat, 18 Sep 2010 04:49:03 -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 05384-01 for ; Sat, 18 Sep 2010 07:48:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id 158A11337BD0 for ; Sat, 18 Sep 2010 04:48:56 -0300 (ADT) Received: from [192.168.1.6] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MMYTG-1Ou7oY0ugI-008Qex; Sat, 18 Sep 2010 09:48:52 +0200 Message-ID: <4C946EE2.5020701@2ndquadrant.com> Date: Sat, 18 Sep 2010 03:48:50 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Scott Marlowe CC: dbhandary@iii.com, pgsql-admin@postgresql.org Subject: Re: files under pg_clog directories are missing References: <4C940889.3000505@iii.com> <4C9432DA.4000609@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:oP1FbxPG0T3slKmoX3FEqZSE/Ct/zqO2RLvn1tiKAQ1 8c9R43DuetdZc5q9lXLHSDdIw5BRZVnXE+IuKVCH4kJSCVl/Gw TL90B1fohXvFlCWQo0LWtWS7AoMf2hRPJEIYXWJ0IdP4m41vVa jS6AO8R+podHBdsxNqZ3YWdlpQ4hqaENjxx1TeNZTbDXyc/2Oy hN4zYDPm8wATgtz5HWiPqbcWq9Fo53SzT3J3cT8+z8= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201009/116 X-Sequence-Number: 35660 Scott Marlowe wrote: > As a followup to all this, the OP also needs to figure out why a > crashed server could cause so much corruption. This is usually the > result of hardware lying about fsync status, i.e. consumer grade > hardware pressed into service as a server. > See http://www.postgresql.org/docs/9.0/static/wal-reliability.html for more information. Nothing there has changed in 9.0 relative to the version being run here, but the docs for that version got a big upgrade over the earlier ones. Bad memory is always a potential source for issues in this area too. Mostly if you don't know why the crash happened, either. If you know for sure how it crashed, but only then found corruption, Scott's right that it's more likely to be a lying disk drive instead. -- Greg Smith, 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services and Support www.2ndQuadrant.us Author, "PostgreSQL 9.0 High Performance" Pre-ordering at: https://www.packtpub.com/postgresql-9-0-high-performance/book