Re: recovery from idiot delete error - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: recovery from idiot delete error
Date
Msg-id 20050412200854.GF25114@dcc.uchile.cl
Whole thread Raw
In response to recovery from idiot delete error  (calvin247@aol.com)
List pgsql-hackers
On Tue, Apr 12, 2005 at 11:58:43AM -0400, calvin247@aol.com wrote:
> Hello...
> 
> I'm in rather dire-straits here. I just mistakenly deleted all the 
> entries in a table and I need to recover them. I'm told that there's 
> something I can do along the lines of "hacking up a PG to show deleted 
> 'tuples'" ...

What version is this?  In recents ones you can change
src/backend/utils/time/tqual.c or just compile with
-DMAKE_EXPIRED_TUPLES_VISIBLE in CFLAGS
and *I think* you should be able to see deleted tuples.

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"La vida es para el que se aventura"


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: System vs non-system casts
Next
From: Tom Lane
Date:
Subject: Simplifying bootstrap OID assignment