Re: Triggers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Mair <chrisnospam(at)1006(dot)org>
Cc: Germán Hüttemann Arza <ghuttemann(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Triggers
Date: 2006-10-15 16:43:30
Message-ID: 22991.1160930610@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Mair <chrisnospam(at)1006(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2006-10-15 16:47:44 Re: more anti-postgresql FUD
Previous Message A. Kretschmer 2006-10-15 16:35:27 Re: How to make a copy of schema