Re: [WAS:ADMIN] [WAS:PERFORM] Restore database after drop command

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Adarsh Sharma <adarsh(dot)sharma(at)orkash(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: [WAS:ADMIN] [WAS:PERFORM] Restore database after drop command
Date: 2011-07-25 07:46:55
Message-ID: 4E2D1F6F.1040203@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-performance

> [ADMIN] [PERFORM]

First rule of mailing lists: DO NOT CROSS POST. Please stick to one
mailing list. I've replied on pgsql-general where your post started out.
Please do not reply to the posts on -admin or -perform.

My reply follows below.

On 25/07/11 15:11, Adarsh Sharma wrote:
> I go through the link, so it is impossible to get the data back.
> I have following files in my pg_xlog directory :
>
> 000000010000000700000091
> 000000010000000700000092
> 000000010000000700000093
> 000000010000000700000094
> 000000010000000700000095
> 000000010000000700000096
> 000000010000000700000097
> 000000010000000700000098
>
> I think I issued the drop database command 1 month ago.

.... and you're asking NOW? Even though "it's urgent"?

The first rule of data recovery: As soon as you realize something is
wrong, make a copy of everything immediately. Then stop using it.

>
> I think I issued the drop database command 1 month ago.
> From the manual, I understand that my segment files are recycled to newer ones :

Correct. Any chance you ever had of recovering your data is almost
certainly gone because you restored into it - probably immediately
destroying your deleted data - then kept on using the database for
another month.

If you're willing to spend a lot of money you might be able to recover
some of it using hard-drive level overwritten data forensics, but I
rather doubt it.

--
Craig Ringer

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Florian Weimer 2011-07-25 10:51:31 Re: Restore database after drop command
Previous Message Adarsh Sharma 2011-07-25 07:11:05 Re: Restore database after drop command

Browse pgsql-general by date

  From Date Subject
Next Message Markus Wollny 2011-07-25 07:56:41 Query, usually running <300ms, sometimes hangs for hours
Previous Message Craig Ringer 2011-07-25 07:41:55 Re: Would it be possible

Browse pgsql-performance by date

  From Date Subject
Next Message Florian Weimer 2011-07-25 10:51:31 Re: Restore database after drop command
Previous Message Adarsh Sharma 2011-07-25 07:11:05 Re: Restore database after drop command