Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TEoSZ-0001Mv-L9 for pgsql-bugs@postgresql.org; Thu, 20 Sep 2012 21:38:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TEoSX-0007wD-QP for pgsql-bugs@postgresql.org; Thu, 20 Sep 2012 21:38:59 +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 q8KLcq1o015919; Thu, 20 Sep 2012 17:38:52 -0400 (EDT) From: Tom Lane To: Andres Freund cc: pgsql-bugs@postgresql.org, mayank.mittal.1982@hotmail.com Subject: Re: BUG #7562: could not read block 0 in file "base/16385/16585": read only 0 of 8192 bytes In-reply-to: <201209202331.35967.andres@2ndquadrant.com> References: <25722.1348161317@sss.pgh.pa.us> <201209202331.35967.andres@2ndquadrant.com> Comments: In-reply-to Andres Freund message dated "Thu, 20 Sep 2012 23:31:35 +0200" Date: Thu, 20 Sep 2012 17:38:52 -0400 Message-ID: <15918.1348177132@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) X-Archive-Number: 201209/235 X-Sequence-Number: 34229 Andres Freund writes: > On Thursday, September 20, 2012 07:15:17 PM Tom Lane wrote: >> 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. > I think the likelihood of that bug causing the the index file to be zero bytes > - at least thats what I read from $subject - is really, really small: Sure, but what about the heap? The case I was speculating about was that the heap had been truncated, but because of the corruption problem, the index still had heap pointers in it. We don't know what file 16585 is supposed to be. Your point about hash indexes is definitely worth asking though... that would square with the reported symptoms. regards, tom lane