Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TEkLR-0001an-Ms for pgsql-bugs@postgresql.org; Thu, 20 Sep 2012 17:15:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TEkLQ-0008A5-MN for pgsql-bugs@postgresql.org; Thu, 20 Sep 2012 17:15:21 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q8KHFH4o025723; Thu, 20 Sep 2012 13:15:17 -0400 (EDT) From: Tom Lane To: mayank.mittal.1982@hotmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7562: could not read block 0 in file "base/16385/16585": read only 0 of 8192 bytes In-reply-to: References: Comments: In-reply-to mayank.mittal.1982@hotmail.com message dated "Thu, 20 Sep 2012 16:15:11 -0000" Date: Thu, 20 Sep 2012 13:15:17 -0400 Message-ID: <25722.1348161317@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) X-Archive-Number: 201209/232 X-Sequence-Number: 34226 mayank.mittal.1982@hotmail.com writes: > The following bug has been logged on the website: > Bug reference: 7562 > Logged by: Mayank Mittal > Email address: mayank.mittal.1982@hotmail.com > PostgreSQL version: 9.1.5 > Operating system: Debian Linux 6.0 > Description: > We are using 2 node set-up of PostgreSQL 9.1.5 in which one is master and > other is slave which is in sync of master with streaming replication. > The design is in such a way that in case of master node failure the slave > node has to take master role. I'm controlling this behaviour using Corosync > and Heartbeat. > My application is requirement needs heavy database updates. Upon fail-over > I've noticed that database indexes got corrupted. Hmm. There is a fix for a slave-side-index-corruption problem in 9.1.6, which is due to be announced Monday. I am not certain whether this is the same thing though; that bug is low-probability as far as we can tell (it would only happen if the master had been in the middle of an index page split or page deletion at the instant of failover). Anyway the first thing to find out is whether 9.1.6 fixes it. regards, tom lane