From: | Keith Wong <keith(at)e-magine(dot)com(dot)au> |
---|---|
To: | Carolyn Lu Wong <carolyn(at)kss(dot)net(dot)au>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: trigger examples |
Date: | 2000-10-03 13:41:52 |
Message-ID: | 4.3.2.7.0.20001003233932.00b66768@mail.e-magine.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
This is an example script I use to keep a log of all database operations on
my tables.
Hope it helps.
At 05:05 PM 3/10/2000 +1000, Carolyn Lu Wong wrote:
>drfrog(at)smartt(dot)com wrote:
> >
> > Carolyn Lu Wong wrote:
> > >
> > > I need to write a trigger to create a new record in log table if it's a
> > > new record or if column A and B changes. Can someone give me an example
> > > how to do this.
> > >
> > > Are there any sites that gives trigger examples??
> > >
> > > Thanks.
> >
> > the fulltextindex in the contrib dir gives an example
>
>The example uses C. Is it possible to create the trigger with plpsql
>function?
Attachment | Content-Type | Size |
---|---|---|
table_customer.sql | application/octet-stream | 4.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Ansley | 2000-10-03 13:44:08 | RE: Object features of pg |
Previous Message | Peter Mount | 2000-10-03 13:32:23 | Re: Object features of pg |