Re: Cast record as text
От | A. Kretschmer |
---|---|
Тема | Re: Cast record as text |
Дата | |
Msg-id | 20070214145419.GB11829@a-kretschmer.de обсуждение исходный текст |
Ответ на | Cast record as text (dun@haisuli.net) |
Ответы |
Re: Cast record as text
|
Список | pgsql-general |
am Wed, dem 14.02.2007, um 16:38:27 +0200 mailte dun@haisuli.net folgendes: > Hi, > > I'm trying to build an audit system for several tables. My idea was to use > triggers and plpgsql to record changes made to "important tables" to a > special audit table. My problem is that I don't want to create a separate > audit log table for each table that is being monitored. What I would like > to do is just cast the data from NEW.* or OLD.* to text and insert it into > a text column. Is this possible? I'm using version 8.1.5. Why do you want to reinvent the wheel? http://pgfoundry.org/projects/tablelog/ But it use a separate log-table per table. Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
В списке pgsql-general по дате отправления: