Re: [SQL] Copying data with triggers

2000-08-21 Thread Tom Lane
Keith Wong <[EMAIL PROTECTED]> writes: > create function tp_info () returns opaque as ' > begin > -- insert into audit table > insert into AudInfo (info_id, some_data, aud_operation_type) values > (new.info_id, new.some_data, ''i''); > return new; >

[SQL] Copying data with triggers

2000-08-21 Thread Keith Wong
Hi all, In the database I'm designing, I want to have audit tables that keep a log of all inserts, updates and deletes that occur on any table. e.g. If i had a table Info, create table Info ( info_id SERIAL, some_data text ) I would also have a corresponding audit ta