Re: Functions and triggers can anyone help

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
Cc: RobertD(dot)Stewart(at)mail(dot)state(dot)ky(dot)us, pgsql-general(at)postgresql(dot)org
Subject: Re: Functions and triggers can anyone help
Date: 2003-02-05 15:26:02
Message-ID: 26102.1044458762@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Nigel J. Andrews" <nandrews(at)investsystems(dot)co(dot)uk> writes:
> But how are you trying to set the trigger. You included the function
> definition, which I presume is created ok but haven't looked at, where as
> you've not included the command that is failing.

The given function is fine as a function, but is not directly usable
as a trigger. Trigger functions take no explicit arguments --- they
receive the current row as an implicit argument. See the examples
in the manual...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2003-02-05 15:58:33 Re: Functions and triggers can anyone help
Previous Message Tom Lane 2003-02-05 15:18:33 Re: Temporary and permanent tables with same name