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

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to