Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8B6DD632EED for ; Thu, 22 Apr 2010 09:16:29 -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 79591-04 for ; Thu, 22 Apr 2010 12:16:18 +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 C2F5F6331C5 for ; Thu, 22 Apr 2010 09:16:16 -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 o3MCG9AW020714 for ; Thu, 22 Apr 2010 15:16:09 +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 o3MCG816020713 for pgsql-admin@postgresql.org; Thu, 22 Apr 2010 15:16:08 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: "pgsql-admin@postgresql.org" Subject: pgsql 8.3.3 "Invalid page header" leads to "FATAL: segment too big" Date: Thu, 22 Apr 2010 14:16:08 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201004221516.08729.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/301 X-Sequence-Number: 34395 Hello, i have this serious problem in one of our remote vessels. (comm is done by minicom to the remote satelite modem) I think that this server was under some sort of constant resets or hardware failures. Initially,i had this problem: ERROR: invalid page header in block 672720 of relation "pg_toast_125716009" This toast table corresponds to a table named "mail_message", Table "public.mail_message" Column | Type | Modifiers -----------+-------------------+----------------------------------------------------------- msgno | mail_msgno_domain | not null default nextval('mail_msgno_sequence'::regclass) msgsource | bytea | Indexes: "mail_message_key" PRIMARY KEY, btree (msgno) (obviously the TOAST table serves the msgsource varlena) the contents of which is not of vital importance. I tried, REINDEXING, with no success, and after that, i tried resetting the said block on disk as per this suggestion by Tom here: http://old.nabble.com/invalid-page-header-td11981154.html i found the oid of the table: SELECT tableoid,1 from pg_toast.pg_toast_125716009 order by chunk_id LIMIT 1 tableoid | ?column? -----------+---------- 125716013 | 1 (and just to verify) SELECT relname from pg_class where oid=125716013; relname -------------------- pg_toast_125716009 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 server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Succeeded. Is there anything i can do to savage the situation? (one of) the hard part here is that i dont have neither physical nor network access to the server (only ultra expensive unreliable satellite comms) Thanks for any hints... -- Achilleas Mantzios