Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2A6BF1337B69 for ; Thu, 3 Mar 2011 12:40:37 -0400 (AST) 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 50140-06 for ; Thu, 3 Mar 2011 16:40:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from alibaba2.comgate.cz (mail3.comgate.cz [78.102.13.243]) by mail.postgresql.org (Postfix) with ESMTP id D4C8D1337B43 for ; Thu, 3 Mar 2011 12:40:29 -0400 (AST) Received: from mail-fx0-f49.google.com (mail-fx0-f49.google.com [209.85.161.49]) by alibaba2.comgate.cz (ComGateMailGW) with ESMTP id 6B9F0EE4018 for ; Thu, 3 Mar 2011 17:40:28 +0100 (CET) Received: by fxm16 with SMTP id 16so1393354fxm.36 for ; Thu, 03 Mar 2011 08:40:26 -0800 (PST) Received: by 10.223.85.203 with SMTP id p11mr1701366fal.108.1299170397365; Thu, 03 Mar 2011 08:39:57 -0800 (PST) Received: from [10.1.1.60] (mail2.comgate.cz [78.102.13.242]) by mx.google.com with ESMTPS id 21sm671686fav.41.2011.03.03.08.39.55 (version=SSLv3 cipher=OTHER); Thu, 03 Mar 2011 08:39:56 -0800 (PST) Message-ID: <4D6FC45D.5030709@comgate.cz> Date: Thu, 03 Mar 2011 17:39:57 +0100 From: Jakub Ouhrabka User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.14) Gecko/20110221 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: Robert Haas CC: pgsql-bugs@postgresql.org Subject: Re: Corrupted index on 9.0.3 streaming hot standby References: <4D679081.4020801@comgate.cz> In-Reply-To: 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=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/54 X-Sequence-Number: 29564 Hi Robert, > If there hasn't been a system crash on the standby, then it's harder > to explain. It'd be interesting to compare the disk blocks in the > index on the standby with the disk blocks in the index on the master > and figure out which ones are different and in what way. pg_filedump > might be useful. I think this is the case. We can even reproduce it: take another backup of uncorrupted master and the slave is again corrupted. The strange thing is that this only affects streaming replication standby, not wal files shipping standby. Maybe we're doing something wrong... Could the reason for the strange behaviour (see previous mail) be something different than corrupted index? We'll try to reproduce it in testing environment and possibly create reproducible test case. I'll definitely report back... Regards, Kuba