Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 800896327CA for ; Thu, 22 Apr 2010 13:57:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 47549-03-2 for ; Thu, 22 Apr 2010 16:57:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id EB67A6383E4 for ; Thu, 22 Apr 2010 12:25:22 -0300 (ADT) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id o3MFPLNX022970 for ; Thu, 22 Apr 2010 18:25:21 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id o3MFPKBt022969 for pgsql-admin@postgresql.org; Thu, 22 Apr 2010 18:25:20 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: "pgsql-admin@postgresql.org" Subject: Re: pgsql 8.3.3 "Invalid page header" leads to "FATAL: segment too big" User-Agent: KMail/1.9.7 References: <201004221516.08729.achill@matrix.gatewaynet.com> <671.1271947353@sss.pgh.pa.us> In-Reply-To: <671.1271947353@sss.pgh.pa.us> MIME-Version: 1.0 Content-Disposition: inline Date: Thu, 22 Apr 2010 17:25:20 +0200 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201004221825.20609.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201004/306 X-Sequence-Number: 34400 =CE=A3=CF=84=CE=B9=CF=82 Thursday 22 April 2010 17:42:33 =CE=B3=CF=81=CE=AC= =CF=88=CE=B1=CF=84=CE=B5: > Achilleas Mantzios writes: > > Then i did: (as i said i do not need the contents of msgsource - yet th= e contents of msgno are vital) > > dd if=3D/dev/zero of=3D/usr/local/var/lib/pgsql/data/base/125714957/125= 716013 seek=3D672720 bs=3D8192 count=3D1=20 >=20 > > However, after that, unfortunately i get constant postgresql server res= tarts with: > > FATAL: segment too big >=20 > You got the dd command wrong and made the file size change to something > it shouldn't be. I think you can use dd to truncate the file back to > what it should be (ie, exactly 1GB) but haven't had enough caffeine to > remember exactly how. >=20 > I think the underlying error is that block 672720 isn't going to be in > the first segment of the table --- you need to be zeroing something in > one of the other segments... Great, thanx a lot, any idea about the naming of the files of those other segments? >=20 > regards, tom lane >=20 =2D-=20 Achilleas Mantzios