Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TEyYn-0003KP-1S for pgsql-bugs@postgresql.org; Fri, 21 Sep 2012 08:26:05 +0000 Received: from moutng.kundenserver.de ([212.227.17.9]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TEyYk-0000PS-W1 for pgsql-bugs@postgresql.org; Fri, 21 Sep 2012 08:26:04 +0000 Received: from awork2.localnet (p5DDC770F.dip.t-dialin.net [93.220.119.15]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0LeAyi-1TpOiC2fHA-00qMz3; Fri, 21 Sep 2012 10:25:52 +0200 From: Andres Freund Organization: 2ndquadrant.com To: Bernd Helmle Subject: Re: BUG #7562: could not read block 0 in file "base/16385/16585": read only 0 of 8192 bytes Date: Fri, 21 Sep 2012 10:25:50 +0200 User-Agent: KMail/1.13.7 (Linux/3.6.0-rc6-andres-00066-g2682cc4-dirty; KDE/4.8.4; x86_64; ; ) Cc: Tom Lane , pgsql-bugs@postgresql.org, mayank.mittal.1982@hotmail.com References: <16858.1348179492@sss.pgh.pa.us> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201209211025.51119.andres@2ndquadrant.com> X-Provags-ID: V02:K0:+PiHKvPhDBJcSP48MI27Lk7FG5qfgVpBpLrTykGAJZ6 bqQ5qrCu4zDnkBQ38rAHdmjcE5lrDGHVIk+0JEXQa2+LwAzNey jcwgMELgE3K8vvEHEk8UY4wZVwVFwT7tli1sJGI+3Fv1pPvdYJ f+Ij5qmcM6VhqlEzLGt+SxcuJBadgpabSBfsvmPNgigwWxOTFE cnnfGEfbfCa99FywJLPC43HowmNHoAAjcm/DDDu7MptnAdXstH 6sT2S32/EuJ7adPrEUbil29sfvlX2xBfE8Ed0IkkRELuYoxrzP lTqkkd0CuCExi7geF/DzmkgJBFJTg3psTJP2JZyRcOZrfUiD78 7ll5Z6ftX4BHwNmT3CjoCmmh0Md5u7D5Q3+ye8zq1ODFTHJ9sV qOE6blcVRpbEA== X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/242 X-Sequence-Number: 34236 On Friday, September 21, 2012 10:18:39 AM Bernd Helmle wrote: > --On 20. September 2012 18:18:12 -0400 Tom Lane wrote: > > If it were an actual TRUNCATE, yeah. But it could be a case of VACUUM > > truncating a now-empty table to zero blocks. > > > > But nothing like this would explain the OP's report that corruption is > > completely reproducible for him. So I like your theory about hash index > > use better. We really oughta get some WAL support in there. > > We had a similar issue at a customer site. The server was shut down for > updating it from 9.1.4 to 9.1.5, after starting it again the log was > immediately cluttered with How was it shutdown? -m fast or -m immediate? > ERROR: could not read block 251 in file "base/6447890/7843708": read only > 0 of 8192 bytes So, not block 0. How many blocks does the new index contain? Mayank: Do you always see the error in block 0? > The index was a primary key on table with mostly INSERTS (only a few > hundred DELETEs, autovacuum didn't even bother to vacuum it yet and no > manual VACUUM). According to the customer, no DDL action takes place on > this specific table. The kernel didn't show any errors. Ok, this is getting wierd. Bernd some minutes ago confirmed on IRC that the table is older than the last checkpoint... Greetings, Andres -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services