Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TF1dS-0001gF-16 for pgsql-bugs@postgresql.org; Fri, 21 Sep 2012 11:43:06 +0000 Received: from moutng.kundenserver.de ([212.227.17.10]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TF1dP-0003I7-Ct for pgsql-bugs@postgresql.org; Fri, 21 Sep 2012 11:43:05 +0000 Received: from awork2.localnet (p5DDC7929.dip.t-dialin.net [93.220.121.41]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MW7C9-1SzrLQ385x-00XKeg; Fri, 21 Sep 2012 13:43:01 +0200 From: Andres Freund Organization: 2ndquadrant.com To: Mayank Mittal 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 13:43:00 +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" References: <873D76786B6DA97F0EBD16ED@apophis.credativ.lan> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201209211343.00408.andres@2ndquadrant.com> X-Provags-ID: V02:K0:fP/EN4+YVa0ARXR+R4LP0IiZv2Wcc9QxY0kfVkERZNP Y3PnKD/nBSsHxUHznV7gmoxyiU6VmbU5T3iwl+vR3UHbHuiWTv g0wcNu0ABPKYh3by/6G2RKlIscxAewzFCEWD6irYOa3C7ndXPp BMmn5V30icQ3xumz9+qr6P4vrUxTfvrVrbTu7HBdABTVQBCPfA 2Igv2Vw4H8P9hjIr5CEWj+NSfWru26We4OQAZmNAaEFsMtvovs GVN5W7FfuUGZVpGbsIH67gQSNd0CvTLtInkFiqsdXh9tfXt8cW Xu2KTZuayKDx+Ubz4kFdCDglJWYhZ0RZk7bBI/m4xezne0EKy+ LwQ6+ac3V8FBMpAloxu/9Ya2OGH5SrJV98mGZQspr X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/246 X-Sequence-Number: 34240 On Friday, September 21, 2012 01:37:38 PM Mayank Mittal wrote: > As discussed with Andres on IRC, I tried to reproduce the issue with some > debug log enabled.In order to reproduce I fixed my already broken system > (index corrupted) by running REINDEX database .Once done I > performed the failover and now I'm getting following > error:[org.postgresql.util.PSQLException: ERROR: missing chunk number 0 > for toast value 33972 in pg_toast_16582] Unfortunately I don't think its really a valid approach to start from an already corrupted database when doing this :( There might already be lingering corruption causing the problem. Have you seen the missing chunk error before? Did you reproduce the issue from a corrupted database as well before? Greetings, Andres > Regards, > Mayank MittalBarco Electronics System Ltd.Mob. +91 9873437922 > > > Date: Fri, 21 Sep 2012 11:34:49 +0200 > > From: mailings@oopsware.de > > To: andres@2ndquadrant.com > > CC: tgl@sss.pgh.pa.us; pgsql-bugs@postgresql.org; > > mayank.mittal.1982@hotmail.com Subject: Re: [BUGS] BUG #7562: could not > > read block 0 in file "base/16385/16585": read only 0 of 8192 bytes > > > > > > > > --On 21. September 2012 10:25:50 +0200 Andres Freund > > > > wrote: > > >> 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? > > > > -m fast > > > > >> 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? > > > > 255 blocks according to its current size. -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services