Re: is there a function in postgresql that can be used for retrieving deleted rows

From: David Johnston <polobo(at)yahoo(dot)com>
To: Charles Waweru <cwaweru(at)systempartners(dot)biz>
Cc: "<pgsql-general(at)postgresql(dot)org>" <pgsql-general(at)postgresql(dot)org>
Subject: Re: is there a function in postgresql that can be used for retrieving deleted rows
Date: 2011-10-22 17:12:44
Message-ID: FB3ACCC4-64E4-4F9B-A0F8-09F699B01963@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Oct 22, 2011, at 1:23, "Charles Waweru" <cwaweru(at)systempartners(dot)biz> wrote:

> I am looking for a tool in the PostgreSQL database that can help to audit fraudulent activities on a PostgreSQL database. Of particular interest is how to retrieve say from a PostgreSQL sales database all the deleted rows.
>
>
>
> Any suggestion please would be appreciated.
>
>
>
> Charles
>

You have to manually save the row to an archive table prior to deleting it. Once you have deleted a row from a table you cannot get it back.

There are multiple options to choose from to implement such an archive process.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Atkins 2011-10-22 17:28:29 Re: is there a function in postgresql that can be used for retrieving deleted rows
Previous Message Adrian Klaver 2011-10-22 17:09:59 Re: 9.0: plpgsql eror when restoring a database as a non superuser