Search Postgresql Archives

Re: [COMMITTERS] recover deleted records

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pavel Stehule wrote:
2009/11/24 Allan Morris Caras <amscaras@xxxxxxxxx>:
Hi,

I tried to test it but it says couldn't find class 'pg_attribute'

It is strange - but this software isn't maintained long time, and it's
not actual.

so it is a bad

Pavel

When I tried looking into the table that deleted records from, it didn't revert back what I've deleted.

Any clues?

Easiest is to restore from backup ;)

It would be cool if there was an XID override function. If you could for instance say "run this query, but I want you to use the XID immediately before the one that wiped out my table," then you could see all of those deleted rows. To my knowledge, no such functionality exists, but it might not be that hard.

And if you were really brave, you could copy the binary file for that table and walk it removing the xmax values that matched the offending transaction. There may be problems with the freespace map or other issues that I'm not aware of, but I'd probably at least try it if I was going to lose my job or the company lose mega $ over it.

Scott Bailey


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux