From: Jakub Ouhrabka <kuba@comgate.cz>
To: pgsql-bugs@postgresql.org
Subject: Corrupted index on 9.0.3 streaming hot standby
Date: Fri, 25 Feb 2011 12:20:33 +0100
Message-ID: <4D679081.4020801@comgate.cz> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kuba@comgate.cz
Subject: Re: Corrupted index on 9.0.3 streaming hot standby
In-Reply-To: <4D679081.4020801@comgate.cz>
References: <4D679081.4020801@comgate.cz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox