Re: Passing parameters to a Trigger - Mailing list pgsql-novice

From Josh Berkus
Subject Re: Passing parameters to a Trigger
Date
Msg-id 200301271430.56284.josh@agliodbs.com
Whole thread Raw
In response to Passing parameters to a Trigger  (Antonio Scotti <ascotti@mbigroup.it>)
List pgsql-novice
Antonio,

> I need to pass to a trigger two dynamic text parameters stored into a
> table (I can obtain them via a simple select). How can I obtain such a
> thing?

You can't.  Triggers do not accept parameters.

If the parameters you're talking about are table columns, you can access them
through the NEW and OLD record objects.

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


pgsql-novice by date:

Previous
From: Josh Berkus
Date:
Subject: Re: postgresql with SuSE 8.0
Next
From: Jonathon Batson
Date:
Subject: Re: Learning Plpgsql ??