Re: Reg : Data base deletion - Mailing list pgsql-bugs

From Bill Moran
Subject Re: Reg : Data base deletion
Date
Msg-id 20080625080622.6016fe4d.wmoran@collaborativefusion.com
Whole thread Raw
In response to Reg : Data base deletion  ("Pradeepa" <pradeepa.ili@valtech.co.in>)
List pgsql-bugs
In response to "Pradeepa" <pradeepa.ili@valtech.co.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@collaborativefusion.com
Phone: 412-422-3463x4023

pgsql-bugs by date:

Previous
From: Russell Smith
Date:
Subject: libpq does not manage SSL callbacks properly when other libraries are involved.
Next
From: Andrew Sullivan
Date:
Subject: Re: Reg : Data base deletion