Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TF1iz-0003yG-4k for pgsql-bugs@postgresql.org; Fri, 21 Sep 2012 11:48:49 +0000 Received: from col0-omc4-s3.col0.hotmail.com ([65.55.34.205]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TF1iv-0003Mw-UI for pgsql-bugs@postgresql.org; Fri, 21 Sep 2012 11:48:48 +0000 Received: from COL002-W74 ([65.55.34.200]) by col0-omc4-s3.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 21 Sep 2012 04:48:42 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_8ed8e794-cd7a-499a-99df-a18eee2ea918_" X-Originating-IP: [125.19.34.60] From: Mayank Mittal To: Andres Freund CC: Tom Lane , "pgsql-bugs@postgresql.org" 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 17:18:42 +0530 Importance: Normal In-Reply-To: <201209211343.00408.andres@2ndquadrant.com> References: <873D76786B6DA97F0EBD16ED@apophis.credativ.lan> , <201209211343.00408.andres@2ndquadrant.com> MIME-Version: 1.0 X-OriginalArrivalTime: 21 Sep 2012 11:48:42.0436 (UTC) FILETIME=[0C625040:01CD97EF] X-Pg-Spam-Score: -2.2 (--) X-Archive-Number: 201209/247 X-Sequence-Number: 34241 --_8ed8e794-cd7a-499a-99df-a18eee2ea918_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable No=2C this is the first time=2C I've seen this issue.In past as well reinde= x the tables and it works well. BTW now I'm resetting the database to start from fresh. Regards=2C Mayank MittalBarco Electronics System Ltd.Mob. +91 9873437922 > From: andres@2ndquadrant.com > To: 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 > Date: Fri=2C 21 Sep 2012 13:43:00 +0200 > CC: tgl@sss.pgh.pa.us=3B pgsql-bugs@postgresql.org >=20 > On Friday=2C September 21=2C 2012 01:37:38 PM Mayank Mittal wrote: > > As discussed with Andres on IRC=2C I tried to reproduce the issue with = some > > debug log enabled.In order to reproduce I fixed my already broken syste= m > > (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= =20 > already corrupted database when doing this :( There might already be ling= ering=20 > corruption causing the problem. >=20 > Have you seen the missing chunk error before? Did you reproduce the issue= from=20 > a corrupted database as well before? >=20 > Greetings=2C >=20 > Andres >=20 > > Regards=2C > > Mayank MittalBarco Electronics System Ltd.Mob. +91 9873437922 > >=20 > > > Date: Fri=2C 21 Sep 2012 11:34:49 +0200 > > > From: mailings@oopsware.de > > > To: andres@2ndquadrant.com > > > CC: tgl@sss.pgh.pa.us=3B pgsql-bugs@postgresql.org=3B > > > mayank.mittal.1982@hotmail.com Subject: Re: [BUGS] BUG #7562: could n= ot > > > read block 0 in file "base/16385/16585": read only 0 of 8192 bytes > > >=20 > > >=20 > > >=20 > > > --On 21. September 2012 10:25:50 +0200 Andres Freund > > >=20 > > > wrote: > > > >> We had a similar issue at a customer site. The server was shut dow= n > > > >> for updating it from 9.1.4 to 9.1.5=2C after starting it again the= log > > > >> was immediately cluttered with > > > >=20 > > > > How was it shutdown? -m fast or -m immediate? > > >=20 > > > -m fast > > >=20 > > > >> ERROR: could not read block 251 in file "base/6447890/7843708": r= ead > > > >> only 0 of 8192 bytes > > > >=20 > > > > So=2C not block 0. How many blocks does the new index contain? > > >=20 > > > 255 blocks according to its current size. >=20 > --=20 > Andres Freund http://www.2ndQuadrant.com/ > PostgreSQL Development=2C 24x7 Support=2C Training & Services >=20 >=20 > --=20 > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-bugs = --_8ed8e794-cd7a-499a-99df-a18eee2ea918_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
No=2C this is the first time=2C = I've seen this issue.
In past as well reindex the tables and it works w= ell.

BTW now I'm resetting the database to start f= rom fresh.

Regards=2C

Mayank Mittal
Bar= co Electronics System Ltd.
Mob. +91 9873437922


=
>=3B From: andres@2ndquadrant.com>=3B To: mayank.mittal.1982@hotmail.com
>=3B Subject: Re: [BUGS] B= UG #7562: could not read block 0 in file "base/16385/16585": read only 0 of= 8192 bytes
>=3B Date: Fri=2C 21 Sep 2012 13:43:00 +0200
>=3B CC:= tgl@sss.pgh.pa.us=3B pgsql-bugs@postgresql.org
>=3B
>=3B On Fri= day=2C September 21=2C 2012 01:37:38 PM Mayank Mittal wrote:
>=3B >= =3B As discussed with Andres on IRC=2C I tried to reproduce the issue with = some
>=3B >=3B debug log enabled.In order to reproduce I fixed my al= ready broken system
>=3B >=3B (index corrupted) by running REINDEX d= atabase <=3Bdatabase_name>=3B.Once done I
>=3B >=3B performed th= e failover and now I'm getting following
>=3B >=3B error:[org.postgr= esql.util.PSQLException: ERROR: missing chunk number 0
>=3B >=3B for= toast value 33972 in pg_toast_16582]
>=3B Unfortunately I don't think= its really a valid approach to start from an
>=3B already corrupted = database when doing this :( There might already be lingering
>=3B cor= ruption causing the problem.
>=3B
>=3B Have you seen the missing= chunk error before? Did you reproduce the issue from
>=3B a corrupte= d database as well before?
>=3B
>=3B Greetings=2C
>=3B
= >=3B Andres
>=3B
>=3B >=3B Regards=2C
>=3B >=3B Mayan= k MittalBarco Electronics System Ltd.Mob. +91 9873437922
>=3B >=3B <= br>>=3B >=3B >=3B Date: Fri=2C 21 Sep 2012 11:34:49 +0200
>=3B &= gt=3B >=3B From: mailings@oopsware.de
>=3B >=3B >=3B To: andres@= 2ndquadrant.com
>=3B >=3B >=3B CC: tgl@sss.pgh.pa.us=3B pgsql-bugs= @postgresql.org=3B
>=3B >=3B >=3B mayank.mittal.1982@hotmail.com S= ubject: Re: [BUGS] BUG #7562: could not
>=3B >=3B >=3B read block = 0 in file "base/16385/16585": read only 0 of 8192 bytes
>=3B >=3B &g= t=3B
>=3B >=3B >=3B
>=3B >=3B >=3B
>=3B >=3B &g= t=3B --On 21. September 2012 10:25:50 +0200 Andres Freund
>=3B >=3B = >=3B
>=3B >=3B >=3B <=3Bandres@2ndquadrant.com>=3B wrote:>=3B >=3B >=3B >=3B>=3B We had a similar issue at a customer si= te. The server was shut down
>=3B >=3B >=3B >=3B>=3B for updat= ing it from 9.1.4 to 9.1.5=2C after starting it again the log
>=3B >= =3B >=3B >=3B>=3B was immediately cluttered with
>=3B >=3B >= =3B >=3B
>=3B >=3B >=3B >=3B How was it shutdown? -m fast or = -m immediate?
>=3B >=3B >=3B
>=3B >=3B >=3B -m fast
&= gt=3B >=3B >=3B
>=3B >=3B >=3B >=3B>=3B ERROR: could not= read block 251 in file "base/6447890/7843708": read
>=3B >=3B >= =3B >=3B>=3B only 0 of 8192 bytes
>=3B >=3B >=3B >=3B
&g= t=3B >=3B >=3B >=3B So=2C not block 0. How many blocks does the new i= ndex contain?
>=3B >=3B >=3B
>=3B >=3B >=3B 255 blocks a= ccording to its current size.
>=3B
>=3B --
>=3B Andres Fr= eund http://www.2ndQuadrant.com/
>=3B PostgreSQL D= evelopment=2C 24x7 Support=2C Training &=3B Services
>=3B
>= =3B
>=3B --
>=3B Sent via pgsql-bugs mailing list (pgsql-bugs@p= ostgresql.org)
>=3B To make changes to your subscription:
>=3B ht= tp://www.postgresql.org/mailpref/pgsql-bugs
= --_8ed8e794-cd7a-499a-99df-a18eee2ea918_--