pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
To: Khangelani Gama <Khangelani.Gama@ucs-software.co.za>
Subject: Re: How can I find a broken row in a table
Date: Fri, 16 Apr 2010 09:26:45 -0500
Message-ID: <4BC82D5502000025000309D8@gw.wicourts.gov> (raw)
In-Reply-To: <D78A8169F9436B4DB978300336168F3B3359AFE0FE@SWBREXCH00.ucs-software.net>
References: <D78A8169F9436B4DB978300336168F3B3359AFE0FE@SWBREXCH00.ucs-software.net>

Khangelani Gama <Khangelani.Gama@ucs-software.co.za> 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



view thread (3+ messages)

Message-ID: <4BC82D5502000025000309D8@gw.wicourts.gov>
Permalink:  ../4BC82D5502000025000309D8@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4BC82D5502000025000309D8@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, Khangelani.Gama@ucs-software.co.za
  Subject: Re: How can I find a broken row in a table
  In-Reply-To: <4BC82D5502000025000309D8@gw.wicourts.gov>
  References: <D78A8169F9436B4DB978300336168F3B3359AFE0FE@SWBREXCH00.ucs-software.net> <4BC82D5502000025000309D8@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox