Re: [BUGS] Reg : Data base deletion

From: Bill Moran <wmoran(at)collaborativefusion(dot)com>
To: "Pradeepa" <pradeepa(dot)ili(at)valtech(dot)co(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [BUGS] Reg : Data base deletion
Date: 2008-06-25 12:44:16
Message-ID: 20080625084416.9da57b1f.wmoran@collaborativefusion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

In response to "Pradeepa" <pradeepa(dot)ili(at)valtech(dot)co(dot)in>:
>
> Could you please explain the scenario in detail.

Not sure I understand what you mean ... the scenario is yours to
explain. Here is the documentation on configuring PG logging, if
that's what you mean:
http://www.postgresql.org/docs/8.3/static/runtime-config-logging.html

log_statement, in particular, is something to read up on.

You didn't mention which version of PG you're using, nor what GUI
and version you're using to access it. I expect you'll get better
answers if you provide that information.

> I also wanted to let you that the Db has been already deleted and we wanted
> to know when it has been deleted for backup and restoration.

That then depends on whether or not you had DDL logging enabled before
the event occurred. If not, then I'm not sure how to identify when the
event occurred. If it was not enabled, then you may want to look at
whether the GUI you're using logs actions like that, but that will
depend on what GUI you're using.

Since your question isn't a bug, I've redirected the thread to the
pgsql-general@ mailing list.

>
> Thanks in advance.
> Pradeepa
>
> -----Original Message-----
> From: Bill Moran [mailto:wmoran(at)collaborativefusion(dot)com]
> Sent: Wednesday, June 25, 2008 5:36 PM
> To: Pradeepa
> Cc: pgsql-bugs(at)postgresql(dot)org
> Subject: Re: [BUGS] Reg : Data base deletion
>
> In response to "Pradeepa" <pradeepa(dot)ili(at)valtech(dot)co(dot)in>:
> >
> > We want some information like, if any one deletes database from postgres,
> > how to trace when it has been deleted.
>
> The easiest way that I know of is to enable logging of DDL statements in
> postgresql.conf. Make sure you have enough disk space to handle all
> the log data that results.
>
> > The deletion is not from any command
> > but by right clicking on db and deleting it.
>
> It doesn't matter. Whatever GUI you're using to do this will simply
> convert your clicking into SQL commands, so it's really the same
> thing from the server's perspective.
>
> --
> Bill Moran
> Collaborative Fusion Inc.
> http://people.collaborativefusion.com/~wmoran/
>
> wmoran(at)collaborativefusion(dot)com
> Phone: 412-422-3463x4023
>

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran(at)collaborativefusion(dot)com
Phone: 412-422-3463x4023

****************************************************************
IMPORTANT: This message contains confidential information and is
intended only for the individual named. If the reader of this
message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.
****************************************************************

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2008-06-25 13:20:48 Re: just a question re: submitted bug...
Previous Message Andrew Sullivan 2008-06-25 12:28:22 Re: just a question re: submitted bug...

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2008-06-25 13:36:36 Re: Probably been asked a hundred times before.
Previous Message Andrew Sullivan 2008-06-25 12:26:51 Re: Reg : Data base deletion