Skip site navigation (1) Skip section navigation (2)

Re: pgsql 8.3.3 "Invalid page header" leads to "FATAL: segment too big"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pgsql 8.3.3 "Invalid page header" leads to "FATAL: segment too big"
Date: 2010-04-22 14:42:33
Message-ID: 671.1271947353@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> writes:
> Then i did: (as i said i do not need the contents of msgsource - yet the contents of msgno are vital)
> dd if=/dev/zero of=/usr/local/var/lib/pgsql/data/base/125714957/125716013 seek=672720 bs=8192 count=1 

> However, after that, unfortunately i get constant postgresql server restarts with:
> FATAL:  segment too big

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.

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...

			regards, tom lane

In response to

Responses

pgsql-admin by date

Next:From: Achilleas MantziosDate: 2010-04-22 15:18:51
Subject: Re: pgsql 8.3.3 "Invalid page header" leads to "FATAL: segment too big"
Previous:From: Luis DominguezDate: 2010-04-22 14:15:27
Subject: REF: Migracion de Sqlserver a Postgresql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group