Re: big problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Bostjan Potocnik <bostjan(at)idejaplus(dot)si>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: big problem
Date: 2005-02-22 15:40:45
Message-ID: 9759.1109086845@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
>> I deleted valuable data from wrong table :) pretty common problem i
>> think. Guy on #postgresql at freenode told me that my data is still
>> there, but tricky part is how to undo my delete. I'm using pg 7.4.7 on
>> fbsd, i dont' use any special config and pg_xlog is fine. I hope there
>> is a solution :)

> That guy on IRC is probably me. I told him to take a copy of his data
> dir for safekeeping, and not to vacuum. I don't know how to get a look
> at old row versions, however. It's new data with no backup, and no PITR
> running.

The easiest avenue might be to back up the XID counter with
pg_resetxlog. You'd have to dump and restore the table of course, else
the rows will go missing again as soon as the XID climbs up past the
transaction that deleted 'em.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2005-02-22 16:18:52 Re: Get rid of system attributes in pg_attribute?
Previous Message Tom Lane 2005-02-22 15:32:23 Re: Get rid of system attributes in pg_attribute?