Re: Get data back after drop Command

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <adarsh(dot)sharma(at)orkash(dot)com>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: Get data back after drop Command
Date: 2011-08-29 12:33:07
Message-ID: 4E5B40B302000025000407CF@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Adarsh Sharma wrote:

> Today by mistake I issued a drop table statement in Postgresql
> database. Now is it possible to get that data back through WAL.

> archive_mode = on
> archive_command = ''

If you were doing Point In Time Recovery (PITR) backups, you could
restore your last base backups and recover using WAL files up to just
before the table was dropped:

http://www.postgresql.org/docs/8.4/interactive/continuous-archiving.html#BACKUP-PITR-RECOVERY

The empty archive_command suggests that you're not doing proper PITR
style backups, so it appears the answer to your question is "No."

There is a chance that an expert might still be able to recover some
of the data. That's likely to be time-consuming and expensive, but
if the table is not backed up and has sufficient value to you, it
might be worth it.

-Kevin

Browse pgsql-admin by date

  From Date Subject
Next Message Rural Hunter 2011-08-29 13:11:19 plsql gets "out of memory"
Previous Message Craig Ringer 2011-08-29 11:31:23 Re: PostgreSQL 8.2 installation problem