Re: Passing parameters to a Trigger

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Antonio Scotti <ascotti(at)mbigroup(dot)it>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Passing parameters to a Trigger
Date: 2003-01-27 22:30:56
Message-ID: 200301271430.56284.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jonathon Batson 2003-01-27 23:01:40 Re: Learning Plpgsql ??
Previous Message Josh Berkus 2003-01-27 22:29:51 Re: postgresql with SuSE 8.0