Re: Triggers - Mailing list pgsql-general

From Tom Lane
Subject Re: Triggers
Date
Msg-id 22991.1160930610@sss.pgh.pa.us
Whole thread Raw
In response to Re: Triggers  (Chris Mair <chrisnospam@1006.org>)
List pgsql-general
Chris Mair <chrisnospam@1006.org> writes:
>> Why you should write a function first and then the trigger, which must
>> call that function?

> ... there's not just PL/PGSQL: you might want
> to define a function in C or Perl and then have a trigger call it.

Right, that's the real reason: this approach doesn't constrain which
PL you can write your triggers in.

            regards, tom lane

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: How to make a copy of schema
Next
From: Alvaro Herrera
Date:
Subject: Re: more anti-postgresql FUD