Re: Would it be possible - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Would it be possible
Date
Msg-id D960CB61B694CF459DCFB4B0128514C206B21069@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Would it be possible  (Adarsh Sharma <adarsh.sharma@orkash.com>)
List pgsql-general
Adarsh Sharma wrote:

> I am using Postgres-8.4.2 on Windows system.
> I have 2 databases in my postgres database ( globedatabase (21GB),
urldatabase).
>
> 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.
>
> My pglog files is in the E:/data directory & Binary log is also
enabled.
>
> Please let me know if it is possible. It's urgent.

I assume you mean "transaction log" when you say "binary log".

It is possible to restore your database if you have a file system backup
of the database in some state before the "DROP DATABASE" command.
Then you could start from there and restore the database to a point
just before the DROP.

If you have no file system backup, there is no way.
See
http://www.postgresql.org/docs/current/static/continuous-archiving.html

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Sim Zacks
Date:
Subject: Re: Implementing "thick"/"fat" databases
Next
From: Christian Ullrich
Date:
Subject: Re: Would it be possible