Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id BCD8762DBDD for ; Tue, 17 Aug 2010 17:54:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 25607-08 for ; Tue, 17 Aug 2010 20:54:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 629F1632BCF for ; Tue, 17 Aug 2010 17:54:15 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 17 Aug 2010 15:54:14 -0500 Message-Id: <4C6AB09E02000025000347B4@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 17 Aug 2010 15:54:06 -0500 From: "Kevin Grittner" To: "Kevin Kempter" , Subject: Re: Error: missing chunk number for toast value References: <201008171438.39111.cs_dba@consistentstate.com> In-Reply-To: <201008171438.39111.cs_dba@consistentstate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/133 X-Sequence-Number: 35382 Kevin Kempter wrote: > # select * from comments; > ERROR: missing chunk number 0 for toast value 1274882 in > pg_toast_49234 > > > I tried this: > > # reindex table pg_toast.pg_toast_49234; > REINDEX > > > but the error still persists. > > Thoughts? Your database is corrupted. Any idea how that happened? As with any database corruption, I recommend you stop the server and make a copy of the whole data directory and everything under it before any recovery attempts. You could zero in on the damage by selecting specific columns, and ranges of rows. A little more detail would be helpful. For ideas, read this: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems -Kevin