copy DELETES to audit table

Поиск
Список
Период
Сортировка
От jason watkins
Тема copy DELETES to audit table
Дата
Msg-id 005401c00bc6$764d9540$7c84cacf@nwlink.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Keith Wong
Дата:
Сообщение: Copying data with triggers
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Copying data with triggers