Re: Functions and triggers can anyone help - Mailing list pgsql-general

From Tom Lane
Subject Re: Functions and triggers can anyone help
Date
Msg-id 26102.1044458762@sss.pgh.pa.us
Whole thread Raw
In response to Re: Functions and triggers can anyone help  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
"Nigel J. Andrews" <nandrews@investsystems.co.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Temporary and permanent tables with same name
Next
From: Joe Conway
Date:
Subject: Re: Functions and triggers can anyone help