| От | Mike Rylander |
|---|---|
| Тема | Re: Audit trail ? |
| Дата | |
| Msg-id | b918cf3d0505290921d2eceef@mail.gmail.com обсуждение исходный текст |
| Ответ на | Audit trail ? ("Zlatko Matic" <zlatko.matic1@sb.t-com.hr>) |
| Список | pgsql-general |
On 5/29/05, Zlatko Matic <zlatko.matic1@sb.t-com.hr> wrote: > Hello. > > I must have audit trail of all insert/update/delete on several table. I have > several questions regarding that: > > 1. Is it better to have one audit trail table that collects > insert/update/delete of all audited tables, or it is better to have separate > audit trail table for every audited table ? > 2. To use triggers or rules ? Example for both ? > 3. Could someone give me an example of a successfull audit trail solution ? > > I'm running on lack of time, so any help would be precious... We use the "audit table per real table" approach. The SQL script to create the audit trail functions and triggers is attached. There are three example audit trail table creation calls right before the COMMIT. Hope that helps! -- Mike Rylander mrylander@gmail.com GPLS -- PINES Development Database Developer http://open-ils.org
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера