Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 45CF01337B2F for ; Fri, 25 Feb 2011 07:20:40 -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 95697-04 for ; Fri, 25 Feb 2011 11:20:33 +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 C284D133740B for ; Fri, 25 Feb 2011 07:20:32 -0400 (AST) Received: from [10.1.1.60] (unknown [10.1.0.172]) by alibaba2.comgate.cz (ComGateMailGW) with ESMTP id 71E02EE4027 for ; Fri, 25 Feb 2011 12:20:31 +0100 (CET) Message-ID: <4D679081.4020801@comgate.cz> Date: Fri, 25 Feb 2011 12:20:33 +0100 From: Jakub Ouhrabka User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Corrupted index on 9.0.3 streaming hot standby Content-Type: text/plain; charset=ISO-8859-2; 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: 201102/215 X-Sequence-Number: 29487 Hi, we've found that we have corrupted index on 9.0.3 streaming hot standby. Master works ok. There is one more non-streaming standby which is ok as well. Platform is 64bit Linux. Database cluster and this database were created on 9.0.2 and than upgraded to 9.0.3. We are not aware of any crash on either master or streaming standby but we didn't investigate it deeply yet. For details about corrupted index see below. The table and index in question are mostly read-only (several queries per second) writes happen only few times a day. We've backed up whole cluster and recreated it. Shall we investigate it further? How? Is it possible that we make some mistake when doing initial backup which caused corruption? Is there a way to check other indexes? Thanks, Kuba set enable_bitmapscan to on ; explain analyze select * from tXX where colXX = '18'; QUERY PLAN ---------------------------------------------------------------------------------------------------------------------------- Bitmap Heap Scan on tXX (cost=4.49..96.56 rows=30 width=102) (actual time=0.018..0.018 rows=0 loops=1) Recheck Cond: (colXX = '18'::text) -> Bitmap Index Scan on tXX_colXX_idx (cost=0.00..4.48 rows=30 width=0) (actual time=0.015..0.015 rows=0 loops=1) Index Cond: (colXX = '18'::text) Total runtime: 0.053 ms set enable_bitmapscan to off ; explain analyze select * from tXX where colXX = '18'; QUERY PLAN ------------------------------------------------------------------------------------------------------- Seq Scan on tXX (cost=0.00..736.65 rows=30 width=102) (actual time=1.579..8.727 rows=30 loops=1) Filter: (colXX = '18'::text) Total runtime: 8.766 ms