Re: trigger examples

Поиск
Список
Период
Сортировка
От Keith Wong
Тема Re: trigger examples
Дата
Msg-id 4.3.2.7.0.20001003233932.00b66768@mail.e-magine.com.au
обсуждение исходный текст
Ответ на Re: trigger examples  (Carolyn Lu Wong <carolyn@kss.net.au>)
Список 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?

Вложения

В списке pgsql-sql по дате отправления:

Предыдущее
От: Marcin Mazurek
Дата:
Сообщение: Re: grant select on ALL(?) to dbuser;
Следующее
От: Michael Ansley
Дата:
Сообщение: Object features of pg