Search Postgresql Archives

Re: [BUGS] Reg : Data base deletion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In response to "Pradeepa" <pradeepa.ili@xxxxxxxxxxxxx>:
> 
> 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@xxxxxxxxxxxxxxxxxxxxxxx] 
> Sent: Wednesday, June 25, 2008 5:36 PM
> To: Pradeepa
> Cc: pgsql-bugs@xxxxxxxxxxxxxx
> Subject: Re: [BUGS] Reg : Data base deletion
> 
> In response to "Pradeepa" <pradeepa.ili@xxxxxxxxxxxxx>:
> > 
> > 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@xxxxxxxxxxxxxxxxxxxxxxx
> Phone: 412-422-3463x4023
> 


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

wmoran@xxxxxxxxxxxxxxxxxxxxxxx
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.
****************************************************************


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux