Re: help with data recovery from injected UPDATE - Mailing list pgsql-general

From Merlin Moncure
Subject Re: help with data recovery from injected UPDATE
Date
Msg-id b42b73150906150602l14dade9va961fa3b50b50899@mail.gmail.com
Whole thread Raw
In response to Re: help with data recovery from injected UPDATE  (Gus Gutoski <shared.entanglement@gmail.com>)
Responses Re: help with data recovery from injected UPDATE
List pgsql-general
On Sun, Jun 14, 2009 at 10:32 AM, Gus
Gutoski<shared.entanglement@gmail.com> wrote:
> Merlin Moncure wrote:
>>> postgresql  8.1 supports pitr archiving.  you can
>>> do continuous backups and restore the database to just before the bad
>>> data.
>
> I tried using point-in-time-recovery to restore the state of the
> database immediately before the corruption.  It didn't work, but it
> was quite a show.  Here's the story.

yes, I'm sorry...you  misunderstood my suggestion.  the database
supports continuous *archiving* from which a recovery can be made.  No
archives, no recovery :-).  Here is what I'd do if I in your shoes:

From a copy of your filesystem backup, set up the database to run and
attempt pg_resetxlog before starting it up.  Log in and see if your
data is there...if it is, you hit the jackpot...if not...the next step
is to determine if the data is actually _in_ the table.  There are a
couple of ways to do this..tinkering around with transaction
visibility is one...simply dumping the heap file for the table and
inspecting it is another.

merlin

pgsql-general by date:

Previous
From: Whit Armstrong
Date:
Subject: Re: 10 TB database
Next
From: "James B. Byrne"
Date:
Subject: Re: cygwin and postgresql