From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: adarsh.sharma@orkash.com
To: pgsql-admin@postgresql.org
Subject: Re: Get data back after drop Command
Date: Mon, 29 Aug 2011 07:33:07 -0500
Message-ID: <4E5B40B302000025000407CF@gw.wicourts.gov> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, adarsh.sharma@orkash.com
Subject: Re: Get data back after drop Command
In-Reply-To: <4E5B40B302000025000407CF@gw.wicourts.gov>
References: <4E5B40B302000025000407CF@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox