Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0DA35632393 for ; Fri, 16 Apr 2010 11:27:05 -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 76061-04 for ; Fri, 16 Apr 2010 14:26:54 +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 82FD7632298 for ; Fri, 16 Apr 2010 11:26:54 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 16 Apr 2010 09:26:52 -0500 Message-Id: <4BC82D5502000025000309D8@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 16 Apr 2010 09:26:45 -0500 From: "Kevin Grittner" To: "pgsql-admin@postgresql.org" , "Khangelani Gama" Subject: Re: How can I find a broken row in a table References: In-Reply-To: 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=-0.011 tagged_above=-10 required=5 tests=BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/213 X-Sequence-Number: 34307 Khangelani Gama wrote: > there is a table that has a broken row, but now I don't know which > one is broken. the table has about 20974 pages. If there are any indexes on the table which haven't been corrupted, you might try selecting ranges of rows using one of them, capturing the undamaged data into a new table. By subdividing damaged ranges you can do a sort of "binary search" for the bad rows while recovering the good ones. -Kevin