From: Florian Weimer <fweimer@bfk.de>
To: Adarsh Sharma <adarsh.sharma@orkash.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: Restore database after drop command
Date: Mon, 25 Jul 2011 10:51:31 +0000
Message-ID: <8239hueiq4.fsf@mid.bfk.de> (raw)
In-Reply-To: <4E2D0F64.2040500@orkash.com>
References: <4E2D0F64.2040500@orkash.com>
* Adarsh Sharma:
> I restore globedatabase from a .sql file on yesterday morning.I insert
> some new data in that database.
> In the evening, by mistake I issued a *drop database globedatabase* command.
>
> Today morning, I restore again the same database from backup (.sql) file.
> My .sql file have data till yesterday morning but I want newly insert
> data now. Is it possible.
>
> Is it possible to get the data back till the state before drop
> database command.
It might have been possible if you had performed a hard shutdown
directly after discovering the mistake, by undeleting the database files
at the operating system level. This has been made more difficult
(perhaps even impossible) by your subsequent write activity.
--
Florian Weimer <fweimer@bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: fweimer@bfk.de, adarsh.sharma@orkash.com, pgsql-admin@postgresql.org
Subject: Re: Restore database after drop command
In-Reply-To: <8239hueiq4.fsf@mid.bfk.de>
* 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