Re: Postgres Dropped DB have recovered files how to restore

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres Dropped DB have recovered files how to restore
Date: 2016-06-07 18:01:01
Message-ID: 20160607180101.GA453552@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John R Pierce wrote:
> On 6/6/2016 4:09 PM, Alvaro Herrera wrote:
> >I have no idea about Windows filesystems but you may be able to
> >"undelete" the files, as long as you don't touch the partition for
> >anything else; search the web for "undelete ntfs". Once you undelete
> >you will need to put them back in the right places. I suggest you get a
> >disk with twice as much space as the original; make an image copy of the
> >original disk and don't touch the original anymore. Then try to
> >undelete the files from the image. Use the list Adrian provided as a
> >guide for what you're missing.
> >
> >You*may* be able to recover the data, if you're lucky and careful.
>
> that won't work if he did a DROP DATABASE as all the metadata is gone.

It's only very difficult -- not impossible.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Elijah Bitting 2016-06-07 18:31:09 BDR Custom Conflict Handler
Previous Message bricklen 2016-06-07 16:05:20 Re: Re-sync slave server