copy DELETES to audit table - Mailing list pgsql-sql

From jason watkins
Subject copy DELETES to audit table
Date
Msg-id 005401c00bc6$764d9540$7c84cacf@nwlink.com
Whole thread Raw
List pgsql-sql
I'd like to have a trigger that does something like serialize any row to a
text string, then copys it into an audit table befor allowing the delete...
having an restore function that can deserialize would be nice as well, but
not criticle..

the goal would be to allow a couple people who need the ability to remove
rows the ability to do so, but to not loose the information for a week or
so, so that the choice can be double checked by someone else.

jason watkins



pgsql-sql by date:

Previous
From: Keith Wong
Date:
Subject: Copying data with triggers
Next
From: Tom Lane
Date:
Subject: Re: Copying data with triggers