Re: passing parameters to a trigger function - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: passing parameters to a trigger function
Date
Msg-id 20060321143129.GE11045@svana.org
Whole thread Raw
In response to passing parameters to a trigger function  ("Larry White" <ljw1001@gmail.com>)
List pgsql-general
On Tue, Mar 21, 2006 at 09:21:43AM -0500, Larry White wrote:
> I can't figure out how to pass parameters to a trigger function.
>
> I checked the documentation and saw that trigger functions don't take
> params in the usual fashion,
> but couldn't find an example of a pl-sql trigger function that used
> the original row data within the function.

Check the docs. It varies by language, but this is for plpgsql:

http://www.postgresql.org/docs/8.0/static/plpgsql-trigger.html

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: "Larry White"
Date:
Subject: passing parameters to a trigger function
Next
From: Terry Lee Tucker
Date:
Subject: Re: passing parameters to a trigger function