Re: trigger examples - Mailing list pgsql-sql

From Keith Wong
Subject Re: trigger examples
Date
Msg-id 4.3.2.7.0.20001003233932.00b66768@mail.e-magine.com.au
Whole thread Raw
In response to Re: trigger examples  (Carolyn Lu Wong <carolyn@kss.net.au>)
List 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@smartt.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

pgsql-sql by date:

Previous
From: Marcin Mazurek
Date:
Subject: Re: grant select on ALL(?) to dbuser;
Next
From: Michael Ansley
Date:
Subject: Object features of pg