Re: Triggers

From: Chris Mair <chrisnospam(at)1006(dot)org>
To: Germán Hüttemann Arza <ghuttemann(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Triggers
Date: 2006-10-15 14:48:22
Message-ID: 1160923702.16849.2.camel@ultra.home.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Why you should write a function first and then the trigger, which must
> call that function?
>
> What are the advantages/disadvantages of that? Where can I find more
> information?

The PG way seems very natural to me:
you can write functions that do something and then have many triggers
call that same function.

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

Bye, Chris.

--

Chris Mair
http://www.1006.org

In response to

  • Triggers at 2006-10-15 14:29:05 from Germán Hüttemann Arza

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2006-10-15 16:10:53 How to make a copy of schema
Previous Message Germán Hüttemann Arza 2006-10-15 14:29:05 Triggers